From 4e9cdd60ea6877cfb0d18535e6a920ecc5d96d59 Mon Sep 17 00:00:00 2001 From: Jaredl-Dev <260281143+Jaredl-Dev@users.noreply.github.com> Date: Thu, 20 Aug 2026 12:21:00 -0700 Subject: [PATCH] bugfix(controlbar): Prevent texture discoloration in Generals (#3181) --- .../GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp | 1 + .../GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp index 29ef7f98967..03d3bfe5bff 100644 --- a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp +++ b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp @@ -863,6 +863,7 @@ void W3DDisplay::init() DEBUG_CRASH( ("Unable to set render device") ); return; } + WW3D::Set_Texture_Bitdepth(getBitDepth()); //Check if level was never set and default to setting most suitable for system. if (TheGameLODManager->getStaticLODLevel() == STATIC_GAME_LOD_UNKNOWN) diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp index 2642750674c..155e8ac43ec 100644 --- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp +++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp @@ -826,7 +826,6 @@ void W3DDisplay::init() WW3D::Enable_Static_Sort_Lists(true); WW3D::Set_Thumbnail_Enabled(false); WW3D::Set_Screen_UV_Bias( TRUE ); ///< this makes text look good :) - WW3D::Set_Texture_Bitdepth(32); setWindowed( TheGlobalData->m_windowed ); @@ -914,6 +913,7 @@ void W3DDisplay::init() DEBUG_CRASH( ("Unable to set render device") ); return; } + WW3D::Set_Texture_Bitdepth(getBitDepth()); //Check if level was never set and default to setting most suitable for system. if (TheGameLODManager->getStaticLODLevel() == STATIC_GAME_LOD_UNKNOWN)