Skip to content
Permalink
Browse files

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.
  • Loading branch information
greenfire27 committed Oct 14, 2019
1 parent e3b3dce commit ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3
Showing with 2 additions and 2 deletions.
  1. +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();");
}

0 comments on commit ad141fc

Please sign in to comment.
You can’t perform that action at this time.