mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +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",
|
"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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue