From b9696876897042ca76d35cb95c93038f90a8dc6a Mon Sep 17 00:00:00 2001 From: pogokeen Date: Fri, 23 Mar 2018 04:02:35 +0000 Subject: [PATCH] texcache.cpp: Override PTH_INDEXED and fall back to pre-processing tiles if high colour tint effects are being used on indexed colour art git-svn-id: https://svn.eduke32.com/eduke32@6788 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/texcache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/build/src/texcache.cpp b/source/build/src/texcache.cpp index 9e173b147..bec949aab 100644 --- a/source/build/src/texcache.cpp +++ b/source/build/src/texcache.cpp @@ -27,7 +27,7 @@ static const char *texcache_errors[TEXCACHEERRORS] = { "glGetTexLevelParameteriv failed", }; -static pthtyp *texcache_tryart(int32_t const dapicnum, int32_t const dapalnum, int32_t const dashade, int32_t const dameth) +static pthtyp *texcache_tryart(int32_t const dapicnum, int32_t const dapalnum, int32_t const dashade, int32_t dameth) { const int32_t j = dapicnum&(GLTEXCACHEADSIZ-1); pthtyp *pth; @@ -38,6 +38,7 @@ static pthtyp *texcache_tryart(int32_t const dapicnum, int32_t const dapalnum, i if (tintflags & (HICTINT_USEONART|HICTINT_ALWAYSUSEART)) { tintpalnum = dapalnum; + dameth &= ~PTH_INDEXED; if (!(tintflags & HICTINT_APPLYOVERPALSWAP)) searchpalnum = 0; }