@@ -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,7 +223,8 @@ 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,
@@ -236,7 +238,8 @@ class GLShader {
236238 hasFragmentShader ( false ),
237239 hasComputeShader ( true ),
238240 worldShader ( newWorldShader ),
239- pushSkip ( false ) {
241+ pushSkip ( false ),
242+ compileSkip ( false ) {
240243 }
241244
242245public:
@@ -268,6 +271,10 @@ class GLShader {
268271 return currentProgram;
269272 }
270273
274+ bool SkipCompilation () const {
275+ return compileSkip;
276+ }
277+
271278protected:
272279 void PostProcessUniforms ();
273280 uint32_t GetUniqueCompileMacros ( size_t permutation, const int type ) const ;
0 commit comments