@@ -188,6 +188,7 @@ class GLShader {
188188
189189 const bool worldShader;
190190 const bool pushSkip;
191+ const bool compileSkip;
191192protected:
192193 int _activeMacros = 0 ;
193194 int _deformIndex = 0 ;
@@ -212,7 +213,7 @@ class GLShader {
212213 GLShader ( const std::string& name, uint32_t vertexAttribsRequired,
213214 const bool useMaterialSystem,
214215 const std::string newVertexShaderName, const std::string newFragmentShaderName,
215- const bool newPushSkip = false ) :
216+ const bool newPushSkip = false , const bool compileSkip = false ) :
216217 _name ( name ),
217218 _vertexAttribsRequired ( vertexAttribsRequired ),
218219 _useMaterialSystem ( useMaterialSystem ),
@@ -222,12 +223,14 @@ class GLShader {
222223 hasFragmentShader ( true ),
223224 hasComputeShader ( false ),
224225 worldShader ( false ),
225- pushSkip ( newPushSkip ) {
226+ pushSkip ( newPushSkip ),
227+ compileSkip ( compileSkip ) {
226228 }
227229
228230 GLShader ( const std::string& name,
229231 const bool useMaterialSystem,
230- const std::string newComputeShaderName, const bool newWorldShader = false ) :
232+ const std::string newComputeShaderName, const bool newWorldShader = false ,
233+ const bool compileSkip = false ) :
231234 _name ( name ),
232235 _vertexAttribsRequired ( 0 ),
233236 _useMaterialSystem ( useMaterialSystem ),
@@ -236,7 +239,8 @@ class GLShader {
236239 hasFragmentShader ( false ),
237240 hasComputeShader ( true ),
238241 worldShader ( newWorldShader ),
239- pushSkip ( false ) {
242+ pushSkip ( false ),
243+ compileSkip ( compileSkip ) {
240244 }
241245
242246public:
@@ -268,6 +272,10 @@ class GLShader {
268272 return currentProgram;
269273 }
270274
275+ bool IsCompileSkip () const {
276+ return compileSkip;
277+ }
278+
271279protected:
272280 void PostProcessUniforms ();
273281 uint32_t GetUniqueCompileMacros ( size_t permutation, const int type ) const ;
0 commit comments