- made DTA_SpecialColormap work, both for GL3+ and GL2 render paths.

This will only be used for HUD sprites. At the moment it will ignore sprite translations, though, when running in OpenGL 2 legacy mode.
This commit is contained in:
Christoph Oelckers 2018-03-30 21:14:49 +02:00
commit 00c66f42d3
3 changed files with 19 additions and 10 deletions

View file

@ -546,7 +546,7 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
if (index < 0 || (unsigned)index >= SpecialColormaps.Size()) index = 0; // if it isn't in the table FBitmap cannot use it. Shouldn't happen anyway.
if (!gl.legacyMode)
{
gl_RenderState.SetFixedColormap(CM_FIRSTSPECIALCOLORMAP + int(index));
gl_RenderState.SetFixedColormap(CM_FIRSTSPECIALCOLORMAPFORCED + int(index));
}
else
{