Fix missing/invalid palswaps and shades in automap with Polymost

Patch from Nuke.YKT.

git-svn-id: https://svn.eduke32.com/eduke32@7314 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-01-22 17:56:37 +00:00
parent 9b17be7f3e
commit 450244e258

View file

@ -7491,7 +7491,8 @@ void polymost_fillpolygon(int32_t npoints)
if (!(pth->flags & PTH_INDEXED)) if (!(pth->flags & PTH_INDEXED))
polymost_usePaletteIndexing(false); polymost_usePaletteIndexing(false);
} }
else
if (videoGetRenderMode() == REND_POLYMOST)
polymost_updatePalette(); polymost_updatePalette();
float const f = getshadefactor(globalshade); float const f = getshadefactor(globalshade);
@ -7570,7 +7571,8 @@ int32_t polymost_drawtilescreen(int32_t tilex, int32_t tiley, int32_t wallnum, i
if (!(pth->flags & PTH_INDEXED)) if (!(pth->flags & PTH_INDEXED))
polymost_usePaletteIndexing(false); polymost_usePaletteIndexing(false);
} }
else
if (videoGetRenderMode() == REND_POLYMOST)
polymost_updatePalette(); polymost_updatePalette();
glDisable(GL_ALPHA_TEST); glDisable(GL_ALPHA_TEST);