mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fix conditions for DrawBlend calls.
This commit is contained in:
parent
90ab0223a6
commit
8b7a87f256
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue