diff --git a/source/build/src/common.cpp b/source/build/src/common.cpp index ba04de340..87026a1b7 100644 --- a/source/build/src/common.cpp +++ b/source/build/src/common.cpp @@ -244,7 +244,7 @@ void COMMON_clearbackground(int32_t numcols, int32_t numrows) UNREFERENCED_PARAMETER(numcols); # ifdef USE_OPENGL - if (getrendermode() >= REND_POLYMOST && qsetmode==200) + if (getrendermode() >= REND_POLYMOST && in3dmode()) { // glPushAttrib(GL_FOG_BIT); polymost_setFogEnabled(false); diff --git a/source/duke3d/src/osdfuncs.cpp b/source/duke3d/src/osdfuncs.cpp index 0241fb0f7..48e7e3625 100644 --- a/source/duke3d/src/osdfuncs.cpp +++ b/source/duke3d/src/osdfuncs.cpp @@ -142,7 +142,7 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows) UNREFERENCED_PARAMETER(numcols); # ifdef USE_OPENGL - if (getrendermode() >= REND_POLYMOST && qsetmode==200) + if (getrendermode() >= REND_POLYMOST && in3dmode()) { const int32_t i8n8 = OSD_SCALE(OSDCHAR_HEIGHT*numrows); // glPushAttrib(GL_FOG_BIT);