From a4736f6bf7fc5fa9351765c47f5514d4dd28aac4 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Tue, 8 May 2018 22:47:55 +0000 Subject: [PATCH] polymost_bindPth(): Fix issue where non-indexed colour, non-hightile textures (including those with polytintflags HICTINT_USEONART or HICTINT_ALWAYSUSEART) would not render correctly while r_useindexedcolortextures is set. git-svn-id: https://svn.eduke32.com/eduke32@6885 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index b730d70bd..4b14ef047 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -771,7 +771,7 @@ static void polymost_bindPth(pthtyp *pPth) { vec4f_t texturePosSize = { 0.f, 0.f, 1.f, 1.f }; vec2f_t halfTexelSize = { 0.f, 0.f }; - if (r_useindexedcolortextures && + if ((pPth->flags & PTH_INDEXED) && !(pPth->flags & PTH_HIGHTILE)) { Tile tile;