We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d2a3f2 commit 2791fb2Copy full SHA for 2791fb2
1 file changed
src/engine/renderer/tr_shade.cpp
@@ -887,17 +887,12 @@ void Render_generic3D( shaderStage_t *pStage )
887
bool hasDepthFade = pStage->hasDepthFade;
888
bool needDepthMap = pStage->hasDepthFade;
889
890
- const bool needMSAATransion = needDepthMap && backEnd.dirtyDepthBuffer;
891
-
892
- if ( needDepthMap && backEnd.dirtyDepthBuffer && glConfig.textureBarrierAvailable )
+ if ( needDepthMap )
893
{
894
RB_PrepareForSamplingDepthMap();
895
- }
896
897
- if ( needMSAATransion ) {
898
- TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
899
900
- if ( glConfig.MSAA ) {
+ if ( glConfig.MSAA && backEnd.dirtyDepthBuffer ) {
+ TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
901
R_BindFBO( GL_DRAW_FRAMEBUFFER, tr.msaaFBO );
902
}
903
0 commit comments