mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
osdfuncs.cpp: fix OSD background sometimes not rendering with the correct gl state
git-svn-id: https://svn.eduke32.com/eduke32@7784 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1664310159
commit
07df3ffc42
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ void GAME_clearbackground(int numcols, int numrows)
|
|||
polymostSet2dView();
|
||||
glColor4f(0.f, 0.f, 0.f, 0.67f);
|
||||
glEnable(GL_BLEND);
|
||||
glDisable(GL_ALPHA_TEST);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glRecti(0, 0, xdim, i8n8+OSDCHAR_HEIGHT);
|
||||
glColor4f(0.f, 0.f, 0.f, 1.f);
|
||||
glRecti(0, i8n8+4, xdim, i8n8+OSDCHAR_HEIGHT);
|
||||
|
|
Loading…
Reference in a new issue