@@ -521,8 +521,8 @@ class GLShaderManager {
521521class GLUniformSampler : protected GLUniform {
522522 protected:
523523 GLUniformSampler ( GLShader* shader, const char * name, const char * type, const UpdateType updateType ) :
524- GLUniform ( shader, name, type, glConfig2 .bindlessTexturesAvailable ? 2 : 1 ,
525- glConfig2 .bindlessTexturesAvailable ? 2 : 1 , updateType, 0 , true ) {
524+ GLUniform ( shader, name, type, glConfig .bindlessTexturesAvailable ? 2 : 1 ,
525+ glConfig .bindlessTexturesAvailable ? 2 : 1 , updateType, 0 , true ) {
526526 }
527527
528528 inline GLint GetLocation () {
@@ -616,7 +616,7 @@ class GLUniform1i : protected GLUniform
616616 ShaderProgramDescriptor *p = _shader->GetProgram ();
617617
618618 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
619- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
619+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
620620 currentValue = value;
621621 return ;
622622 }
@@ -660,7 +660,7 @@ class GLUniform1ui : protected GLUniform {
660660 ShaderProgramDescriptor* p = _shader->GetProgram ();
661661
662662 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
663- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
663+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
664664 currentValue = value;
665665 return ;
666666 }
@@ -703,7 +703,7 @@ class GLUniform1Bool : protected GLUniform {
703703 ShaderProgramDescriptor* p = _shader->GetProgram ();
704704
705705 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
706- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
706+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
707707 currentValue = value;
708708 return ;
709709 }
@@ -749,7 +749,7 @@ class GLUniform1f : protected GLUniform
749749 ShaderProgramDescriptor *p = _shader->GetProgram ();
750750
751751 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
752- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
752+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
753753 currentValue = value;
754754 return ;
755755 }
@@ -797,7 +797,7 @@ class GLUniform1fv : protected GLUniform
797797 ShaderProgramDescriptor *p = _shader->GetProgram ();
798798
799799 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
800- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
800+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
801801 memcpy ( currentValue.data (), f, numFloats * sizeof ( float ) );
802802 return ;
803803 }
@@ -831,7 +831,7 @@ class GLUniform2f : protected GLUniform
831831 ShaderProgramDescriptor *p = _shader->GetProgram ();
832832
833833 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
834- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
834+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
835835 Vector2Copy ( v, currentValue );
836836 return ;
837837 }
@@ -882,7 +882,7 @@ class GLUniform3f : protected GLUniform
882882 ShaderProgramDescriptor *p = _shader->GetProgram ();
883883
884884 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
885- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
885+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
886886 VectorCopy ( v, currentValue );
887887 return ;
888888 }
@@ -933,7 +933,7 @@ class GLUniform4f : protected GLUniform
933933 ShaderProgramDescriptor *p = _shader->GetProgram ();
934934
935935 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
936- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
936+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
937937 Vector4Copy ( v, currentValue );
938938 return ;
939939 }
@@ -981,7 +981,7 @@ class GLUniform4fv : protected GLUniform
981981 ShaderProgramDescriptor *p = _shader->GetProgram ();
982982
983983 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
984- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
984+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
985985 memcpy ( currentValue.data (), v, numV * sizeof ( vec4_t ) );
986986 return ;
987987 }
@@ -1015,7 +1015,7 @@ class GLUniformMatrix4f : protected GLUniform
10151015 ShaderProgramDescriptor *p = _shader->GetProgram ();
10161016
10171017 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
1018- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
1018+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
10191019 MatrixCopy ( m, currentValue );
10201020 return ;
10211021 }
@@ -1059,7 +1059,7 @@ class GLUniformMatrix32f : protected GLUniform {
10591059 ShaderProgramDescriptor* p = _shader->GetProgram ();
10601060
10611061 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
1062- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
1062+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
10631063 memcpy ( currentValue, m, 6 * sizeof ( float ) );
10641064 return ;
10651065 }
@@ -1096,7 +1096,7 @@ class GLUniformMatrix4fv : protected GLUniform
10961096 ShaderProgramDescriptor *p = _shader->GetProgram ();
10971097
10981098 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
1099- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
1099+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
11001100 memcpy ( currentValue.data (), m, numMatrices * sizeof ( matrix_t ) );
11011101 return ;
11021102 }
@@ -1129,7 +1129,7 @@ class GLUniformMatrix34fv : protected GLUniform
11291129 ShaderProgramDescriptor *p = _shader->GetProgram ();
11301130
11311131 if ( ( _shader->UseMaterialSystem () && _updateType == MATERIAL_OR_PUSH )
1132- || ( glConfig2 .pushBufferAvailable && _updateType <= FRAME ) ) {
1132+ || ( glConfig .pushBufferAvailable && _updateType <= FRAME ) ) {
11331133 memcpy ( currentValue.data (), m, numMatrices * sizeof ( matrix_t ) );
11341134 return ;
11351135 }
0 commit comments