mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- Disable PALVERS substitution when true color rendering is active.
This commit is contained in:
parent
79a0f76801
commit
42b18e6dfb
1 changed files with 2 additions and 2 deletions
|
@ -1131,10 +1131,10 @@ void FTextureManager::InitPalettedVersions()
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
// fixme: The way this is used, it is mostly useless.
|
|
||||||
FTextureID FTextureManager::PalCheck(FTextureID tex)
|
FTextureID FTextureManager::PalCheck(FTextureID tex)
|
||||||
{
|
{
|
||||||
if (vid_nopalsubstitutions) return tex;
|
// In any true color mode this shouldn't do anything.
|
||||||
|
if (vid_nopalsubstitutions || V_IsTrueColor()) return tex;
|
||||||
auto ftex = operator[](tex);
|
auto ftex = operator[](tex);
|
||||||
if (ftex != nullptr && ftex->PalVersion != nullptr) return ftex->PalVersion->id;
|
if (ftex != nullptr && ftex->PalVersion != nullptr) return ftex->PalVersion->id;
|
||||||
return tex;
|
return tex;
|
||||||
|
|
Loading…
Reference in a new issue