Polymost palette-indexed texture rendering

git-svn-id: https://svn.eduke32.com/eduke32@6776 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2018-03-21 20:41:26 +00:00
parent f19607daa8
commit a364b7bbfd
18 changed files with 784 additions and 155 deletions

View file

@ -1016,6 +1016,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
else
glBindTexture(GL_TEXTURE_2D, m->texid[globalpal]);
polymost_usePaletteIndexing(false);
glBegin(GL_QUADS); // {{{
for (bssize_t i=0, fi=0; i<m->qcnt; i++)
@ -1051,6 +1053,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
glEnd(); // }}}
polymost_usePaletteIndexing(true);
//------------
glDisable(GL_CULL_FACE);
// glPopAttrib();