- fix conditions for DrawBlend calls.

This commit is contained in:
Christoph Oelckers 2016-09-03 00:43:18 +02:00
parent 90ab0223a6
commit 8b7a87f256
1 changed files with 5 additions and 2 deletions

View File

@ -688,7 +688,7 @@ void FGLRenderer::EndDrawScene(sector_t * viewsector)
gl_RenderState.SetFixedColormap(CM_DEFAULT);
gl_RenderState.SetSoftLightLevel(-1);
DrawTargeterSprites();
if (FGLRenderBuffers::IsEnabled())
if (!FGLRenderBuffers::IsEnabled())
{
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.SetSoftLightLevel(-1);
screen->Begin2D(false);
DrawBlend(viewsector);
if (!FGLRenderBuffers::IsEnabled())
{
DrawBlend(viewsector);
}
CopyToBackbuffer(&bounds, false);
glFlush();