From 0c2c43e6b018770c8b25f8f9af46189d60402ef3 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 30 Mar 2014 20:35:57 +0000 Subject: [PATCH] In COMMON_clearbackground() (for the OSD), disable fog. git-svn-id: https://svn.eduke32.com/eduke32@4408 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polymer/eduke32/source/common.c b/polymer/eduke32/source/common.c index 46be65c91..63a906563 100644 --- a/polymer/eduke32/source/common.c +++ b/polymer/eduke32/source/common.c @@ -637,12 +637,18 @@ void COMMON_clearbackground(int32_t numcols, int32_t numrows) # ifdef USE_OPENGL if (getrendermode() >= REND_POLYMOST && qsetmode==200) { + bglPushAttrib(GL_FOG_BIT); + bglDisable(GL_FOG); + setpolymost2dview(); bglColor4f(0,0,0,0.67f); bglEnable(GL_BLEND); bglRectd(0,0, xdim,8*numrows+8); bglColor4f(0,0,0,1); bglRectd(0,8*numrows+4, xdim,8*numrows+8); + + bglPopAttrib(); + return; } # endif