mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix console background disappearing intermittently
git-svn-id: https://svn.eduke32.com/eduke32@6785 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ab07afad76
commit
c1d7d1bfe0
2 changed files with 5 additions and 0 deletions
|
@ -248,6 +248,7 @@ void COMMON_clearbackground(int32_t numcols, int32_t numrows)
|
|||
{
|
||||
// glPushAttrib(GL_FOG_BIT);
|
||||
polymost_setFogEnabled(false);
|
||||
polymost_useColorOnly(true);
|
||||
|
||||
setpolymost2dview();
|
||||
glColor4f(0.f, 0.f, 0.f, 0.67f);
|
||||
|
@ -257,6 +258,7 @@ void COMMON_clearbackground(int32_t numcols, int32_t numrows)
|
|||
glRecti(0, 8*numrows+4, xdim, 8*numrows+8);
|
||||
|
||||
// glPopAttrib();
|
||||
polymost_useColorOnly(false);
|
||||
polymost_setFogEnabled(true);
|
||||
|
||||
return;
|
||||
|
|
|
@ -147,6 +147,7 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows)
|
|||
const int32_t i8n8 = OSD_SCALE(OSDCHAR_HEIGHT*numrows);
|
||||
// glPushAttrib(GL_FOG_BIT);
|
||||
polymost_setFogEnabled(false);
|
||||
polymost_useColorOnly(true);
|
||||
|
||||
setpolymost2dview();
|
||||
glColor4f(0.f, 0.f, 0.f, 0.67f);
|
||||
|
@ -154,6 +155,8 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows)
|
|||
glRecti(0, 0, xdim, i8n8+OSDCHAR_HEIGHT);
|
||||
glColor4f(0.f, 0.f, 0.f, 1.f);
|
||||
glRecti(0, i8n8+4, xdim, i8n8+OSDCHAR_HEIGHT);
|
||||
|
||||
polymost_useColorOnly(false);
|
||||
if (!nofog)
|
||||
polymost_setFogEnabled(true);
|
||||
// glPopAttrib();
|
||||
|
|
Loading…
Reference in a new issue