- fixed: fog must be disabled before drawing the HUD model, not after it.

This commit is contained in:
Christoph Oelckers 2014-07-26 22:26:17 +02:00
parent 8465a5f5d7
commit 7ae25906fd

View file

@ -765,6 +765,8 @@ void FGLRenderer::DrawBlend(sector_t * viewsector)
void FGLRenderer::EndDrawScene(sector_t * viewsector) void FGLRenderer::EndDrawScene(sector_t * viewsector)
{ {
gl_RenderState.EnableFog(false);
// [BB] HUD models need to be rendered here. Make sure that // [BB] HUD models need to be rendered here. Make sure that
// DrawPlayerSprites is only called once. Either to draw // DrawPlayerSprites is only called once. Either to draw
// HUD models or to draw the weapon sprites. // HUD models or to draw the weapon sprites.
@ -779,7 +781,6 @@ void FGLRenderer::EndDrawScene(sector_t * viewsector)
glDisable(GL_STENCIL_TEST); glDisable(GL_STENCIL_TEST);
glDisable(GL_POLYGON_SMOOTH); glDisable(GL_POLYGON_SMOOTH);
gl_RenderState.EnableFog(false);
framebuffer->Begin2D(false); framebuffer->Begin2D(false);
ResetViewport(); ResetViewport();