File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1728,11 +1728,13 @@ void RB_CameraPostFX() {
17281728 vec4_t parms{ log2f ( r_toneMappingHDRMax.Get () ) };
17291729 parms[1 ] = UINT32_MAX / ( windowConfig.vidWidth * windowConfig.vidHeight * ( uint32_t ( parms[0 ] ) + 8 ) );
17301730 gl_cameraEffectsShader->SetUniform_TonemapParms2 ( parms );
1731+ }
1732+ gl_cameraEffectsShader->SetUniform_Tonemap ( tonemap );
17311733
1734+ if ( glConfig.adaptiveExposureAvailable ) {
17321735 gl_cameraEffectsShader->SetUniform_TonemapAdaptiveExposure (
1733- glConfig. adaptiveExposureAvailable && r_toneMappingAdaptiveExposure.Get () );
1736+ r_toneMappingAdaptiveExposure.Get () );
17341737 }
1735- gl_cameraEffectsShader->SetUniform_Tonemap ( tonemap );
17361738
17371739 // This shader is run last, so let it render to screen instead of
17381740 // tr.mainFBO
You can’t perform that action at this time.
0 commit comments