Fix alpha blending bug when switching from Polymost to software mode

git-svn-id: https://svn.eduke32.com/eduke32@7696 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-06-25 11:28:18 +00:00 committed by Christoph Oelckers
parent 26a266dfe5
commit 8141fbd692

View file

@ -12435,7 +12435,11 @@ int32_t videoSetRenderMode(int32_t renderer)
#ifdef USE_OPENGL #ifdef USE_OPENGL
if (bpp == 8) if (bpp == 8)
{
glDisable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
renderer = REND_CLASSIC; renderer = REND_CLASSIC;
}
# ifdef POLYMER # ifdef POLYMER
else else
renderer = clamp(renderer, REND_POLYMOST, REND_POLYMER); renderer = clamp(renderer, REND_POLYMOST, REND_POLYMER);