Parcourir la source

Hotfix for Windows 10 Black Screen

Gamma correction was causing a black screen of death on Windows 10 version 1903 when using a single monitor. This hot fix simply comments out the offending code.
Peter Robinson il y a 6 ans
Parent
commit
ad141fc7b5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      engine/source/platform/platformVideo.cc

+ 2 - 2
engine/source/platform/platformVideo.cc

@@ -194,8 +194,8 @@ bool Video::setDevice( const char *renderName, U32 width, U32 height, U32 bpp, b
          Game->textureResurrect();
          smNeedResurrect = false;
       }
-      if (sgOriginalGamma != -1.0 || Video::getGammaCorrection(sgOriginalGamma))
-         Video::setGammaCorrection(sgOriginalGamma + sgGammaCorrection);
+      //if (sgOriginalGamma != -1.0 || Video::getGammaCorrection(sgOriginalGamma))
+         //Video::setGammaCorrection(sgOriginalGamma + sgGammaCorrection);
       Con::evaluate("resetCanvas();");
    }