Skip to content

Commit 2cdcc89

Browse files
committed
Clean-up Render_generic3D() MSAA resolve
1 parent 7b07434 commit 2cdcc89

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/engine/renderer/tr_shade.cpp

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

894-
const bool needMSAATransion = needDepthMap && backEnd.dirtyDepthBuffer;
895-
896-
if ( needDepthMap && backEnd.dirtyDepthBuffer && glConfig.textureBarrierAvailable )
894+
if ( needDepthMap )
897895
{
898896
RB_PrepareForSamplingDepthMap();
899-
}
900-
901-
if ( needMSAATransion ) {
902-
TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
903897

904-
if ( glConfig.MSAA ) {
898+
if ( glConfig.MSAA && backEnd.dirtyDepthBuffer ) {
899+
TransitionMSAAToMain( GL_DEPTH_BUFFER_BIT );
905900
R_BindFBO( GL_DRAW_FRAMEBUFFER, tr.msaaFBO );
906901
}
907902
}

0 commit comments

Comments
 (0)