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:
pogokeen 2019-07-12 08:44:43 +00:00 committed by Christoph Oelckers
parent 1664310159
commit 07df3ffc42

View file

@ -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);