- activate the texture layers if needed.

This commit is contained in:
Christoph Oelckers 2020-05-30 22:27:59 +02:00
parent 00f1043047
commit 82eb807090

View file

@ -93,6 +93,9 @@ bool GLInstance::SetTexture(int picnum, FGameTexture* tex, int paletteid, int me
if (TextureType == TT_INDEXED) renderState.Flags |= RF_UsePalette; if (TextureType == TT_INDEXED) renderState.Flags |= RF_UsePalette;
else renderState.Flags &= ~RF_UsePalette; else renderState.Flags &= ~RF_UsePalette;
GLInterface.SetAlphaThreshold(tex->alphaThreshold); GLInterface.SetAlphaThreshold(tex->alphaThreshold);
UseBrightmaps(tex->GetBrightmap() != nullptr);
UseGlowMapping(tex->GetGlowmap() != nullptr);
UseDetailMapping(tex->GetDetailmap() != nullptr);
return true; return true;
} }