mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53: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.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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue