We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b07434 commit 2cdcc89Copy full SHA for 2cdcc89
src/engine/renderer/tr_shade.cpp
@@ -891,17 +891,12 @@ void Render_generic3D( shaderStage_t *pStage )
891
bool hasDepthFade = pStage->hasDepthFade;
892
bool needDepthMap = pStage->hasDepthFade;
893
894
- const bool needMSAATransion = needDepthMap && backEnd.dirtyDepthBuffer;
895
-
896
- if ( needDepthMap && backEnd.dirtyDepthBuffer && glConfig.textureBarrierAvailable )
+ if ( needDepthMap )
897
{
898
RB_PrepareForSamplingDepthMap();
899
- }
900
901
- if ( needMSAATransion ) {
902
- TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
903
904
- if ( glConfig.MSAA ) {
+ if ( glConfig.MSAA && backEnd.dirtyDepthBuffer ) {
+ TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
905
R_BindFBO( GL_DRAW_FRAMEBUFFER, tr.msaaFBO );
906
}
907
0 commit comments