Skip to content

Commit 2791fb2

Browse files
committed
Clean-up Render_generic3D() MSAA resolve
1 parent 7d2a3f2 commit 2791fb2

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/engine/renderer/tr_shade.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -887,17 +887,12 @@ void Render_generic3D( shaderStage_t *pStage )
887887
bool hasDepthFade = pStage->hasDepthFade;
888888
bool needDepthMap = pStage->hasDepthFade;
889889

890-
const bool needMSAATransion = needDepthMap && backEnd.dirtyDepthBuffer;
891-
892-
if ( needDepthMap && backEnd.dirtyDepthBuffer && glConfig.textureBarrierAvailable )
890+
if ( needDepthMap )
893891
{
894892
RB_PrepareForSamplingDepthMap();
895-
}
896-
897-
if ( needMSAATransion ) {
898-
TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
899893

900-
if ( glConfig.MSAA ) {
894+
if ( glConfig.MSAA && backEnd.dirtyDepthBuffer ) {
895+
TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
901896
R_BindFBO( GL_DRAW_FRAMEBUFFER, tr.msaaFBO );
902897
}
903898
}

0 commit comments

Comments
 (0)