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
This commit is contained in:
pogokeen 2018-03-23 04:02:35 +00:00
parent 337a07ab75
commit b969687689

View file

@ -27,7 +27,7 @@ static const char *texcache_errors[TEXCACHEERRORS] = {
"glGetTexLevelParameteriv failed", "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); const int32_t j = dapicnum&(GLTEXCACHEADSIZ-1);
pthtyp *pth; 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)) if (tintflags & (HICTINT_USEONART|HICTINT_ALWAYSUSEART))
{ {
tintpalnum = dapalnum; tintpalnum = dapalnum;
dameth &= ~PTH_INDEXED;
if (!(tintflags & HICTINT_APPLYOVERPALSWAP)) if (!(tintflags & HICTINT_APPLYOVERPALSWAP))
searchpalnum = 0; searchpalnum = 0;
} }