mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
337a07ab75
commit
b969687689
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue