Skip to content

Commit

Permalink
- Disable PALVERS substitution when true color rendering is active.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Dec 7, 2018
1 parent 79a0f76 commit 42b18e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textures/texturemanager.cpp
Expand Up @@ -1131,10 +1131,10 @@ void FTextureManager::InitPalettedVersions()
//
//==========================================================================

// fixme: The way this is used, it is mostly useless.
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);
if (ftex != nullptr && ftex->PalVersion != nullptr) return ftex->PalVersion->id;
return tex;
Expand Down

0 comments on commit 42b18e6

Please sign in to comment.