- fixed voxel rendering in palette emulation mode.

The recent changes for replacing fonts with hires versions made the paletted handling kick in, although the voxel textures are not suitable for that.
Fixes #178
This commit is contained in:
Christoph Oelckers 2020-11-12 19:26:16 +01:00
parent f9a776e71c
commit 483e0b6574

View file

@ -382,6 +382,8 @@ bool PreBindTexture(FRenderState* state, FGameTexture*& tex, EUpscaleFlags& flag
TexturePick pick;
auto t = tex;
if (tex->GetUseType() == ETextureType::Special) return true;
if (PickTexture(tex, translation, pick))
{
int TextureType = (pick.translation & 0x80000000) ? TT_INDEXED : TT_TRUECOLOR;