- fix conditions for DrawBlend calls.

This commit is contained in:
Christoph Oelckers 2016-09-03 00:43:18 +02:00
parent 90ab0223a6
commit 8b7a87f256

View file

@ -688,7 +688,7 @@ void FGLRenderer::EndDrawScene(sector_t * viewsector)
gl_RenderState.SetFixedColormap(CM_DEFAULT); gl_RenderState.SetFixedColormap(CM_DEFAULT);
gl_RenderState.SetSoftLightLevel(-1); gl_RenderState.SetSoftLightLevel(-1);
DrawTargeterSprites(); DrawTargeterSprites();
if (FGLRenderBuffers::IsEnabled()) if (!FGLRenderBuffers::IsEnabled())
{ {
DrawBlend(viewsector); DrawBlend(viewsector);
} }
@ -970,7 +970,10 @@ void FGLRenderer::WriteSavePic (player_t *player, FILE *file, int width, int hei
gl_RenderState.SetFixedColormap(CM_DEFAULT); gl_RenderState.SetFixedColormap(CM_DEFAULT);
gl_RenderState.SetSoftLightLevel(-1); gl_RenderState.SetSoftLightLevel(-1);
screen->Begin2D(false); screen->Begin2D(false);
if (!FGLRenderBuffers::IsEnabled())
{
DrawBlend(viewsector); DrawBlend(viewsector);
}
CopyToBackbuffer(&bounds, false); CopyToBackbuffer(&bounds, false);
glFlush(); glFlush();