mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- fixed: fog must be disabled before drawing the HUD model, not after it.
This commit is contained in:
parent
8465a5f5d7
commit
7ae25906fd
1 changed files with 2 additions and 1 deletions
|
@ -765,6 +765,8 @@ void FGLRenderer::DrawBlend(sector_t * viewsector)
|
|||
|
||||
void FGLRenderer::EndDrawScene(sector_t * viewsector)
|
||||
{
|
||||
gl_RenderState.EnableFog(false);
|
||||
|
||||
// [BB] HUD models need to be rendered here. Make sure that
|
||||
// DrawPlayerSprites is only called once. Either to draw
|
||||
// HUD models or to draw the weapon sprites.
|
||||
|
@ -779,7 +781,6 @@ void FGLRenderer::EndDrawScene(sector_t * viewsector)
|
|||
glDisable(GL_STENCIL_TEST);
|
||||
glDisable(GL_POLYGON_SMOOTH);
|
||||
|
||||
gl_RenderState.EnableFog(false);
|
||||
framebuffer->Begin2D(false);
|
||||
|
||||
ResetViewport();
|
||||
|
|
Loading…
Reference in a new issue