@@ -1228,7 +1228,7 @@ static void RenderDepthTiles()
12281228 }
12291229
12301230 // Assume depth is dirty since we just rendered depth pass
1231- if ( glConfig2 .textureBarrierAvailable ) {
1231+ if ( glConfig .textureBarrierAvailable ) {
12321232 glTextureBarrier ();
12331233 backEnd.dirtyDepthBuffer = false ;
12341234 }
@@ -1516,7 +1516,7 @@ void RB_RenderMotionBlur()
15161516
15171517 /* Assume depth is dirty since we just rendered depth pass and everything opaque,
15181518 unless we have already rendered post-depth lighttile, which does this as well */
1519- if ( glConfig2 .textureBarrierAvailable && backEnd.dirtyDepthBuffer ) {
1519+ if ( glConfig .textureBarrierAvailable && backEnd.dirtyDepthBuffer ) {
15201520 glTextureBarrier ();
15211521 backEnd.dirtyDepthBuffer = false ;
15221522 }
@@ -2815,7 +2815,7 @@ static void SetFrameUniforms() {
28152815 globalUBOProxy->SetUniform_ColorModulate ( tr.viewParms .gradingWeights );
28162816 globalUBOProxy->SetUniform_InverseGamma ( 1 .0f / r_gamma->value );
28172817
2818- const bool tonemap = r_toneMapping.Get () && r_highPrecisionRendering.Get () && glConfig2 .textureFloatAvailable ;
2818+ const bool tonemap = r_toneMapping.Get () && r_highPrecisionRendering.Get () && glConfig .textureFloatAvailable ;
28192819 if ( tonemap ) {
28202820 vec4_t tonemapParms{ r_toneMappingContrast.Get (), r_toneMappingHighlightsCompressionSpeed.Get () };
28212821 ComputeTonemapParams ( tonemapParms[0 ], tonemapParms[1 ], r_toneMappingHDRMax.Get (),
@@ -2825,7 +2825,7 @@ static void SetFrameUniforms() {
28252825 }
28262826 globalUBOProxy->SetUniform_Tonemap ( tonemap );
28272827
2828- if ( glConfig2 .usingMaterialSystem ) {
2828+ if ( glConfig .usingMaterialSystem ) {
28292829 materialSystem.SetFrameUniforms ();
28302830 }
28312831
@@ -3833,7 +3833,7 @@ void RB_ExecuteRenderCommands( const void *data )
38333833
38343834 materialSystem.frameStart = true ;
38353835
3836- if ( glConfig2 .pushBufferAvailable ) {
3836+ if ( glConfig .pushBufferAvailable ) {
38373837 SetFrameUniforms ();
38383838 }
38393839
0 commit comments