From 349ea08d11adad7d4e819e70ade0b8467d08540b Mon Sep 17 00:00:00 2001 From: Joseph Ameer Aziz Date: Sat, 25 Jul 2026 18:45:15 +0300 Subject: [PATCH] bugfix(texture): Fix Generals missing texture and vegetation at lowest texture resolution Removed the adjustment of reduction factor due to comparison with texture_min_dimension. --- Generals/Code/Libraries/Source/WWVegas/WW3D2/ddsfile.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Generals/Code/Libraries/Source/WWVegas/WW3D2/ddsfile.cpp b/Generals/Code/Libraries/Source/WWVegas/WW3D2/ddsfile.cpp index d3d340549b9..a21ce614457 100644 --- a/Generals/Code/Libraries/Source/WWVegas/WW3D2/ddsfile.cpp +++ b/Generals/Code/Libraries/Source/WWVegas/WW3D2/ddsfile.cpp @@ -98,14 +98,6 @@ DDSFileClass::DDSFileClass(const char* name,unsigned reduction_factor) MipLevels=SurfaceDesc.MipMapCount; if (MipLevels==0) MipLevels=1; - //Adjust the reduction factor to keep textures above some minimum dimensions - if (MipLevels <= WW3D::Get_Texture_Min_Dimension()) - ReductionFactor=0; - else - { int mipToDrop=MipLevels-WW3D::Get_Texture_Min_Dimension(); - if (ReductionFactor >= mipToDrop) - ReductionFactor=mipToDrop; - } if (MipLevels>ReductionFactor) MipLevels-=ReductionFactor; else {