fix threadedRenderer context creation logic

This commit is contained in:
rtri
2018-08-21 21:13:26 +00:00
committed by abcdefg30
parent 67d9ad6a93
commit cdfa52d918

View File

@@ -189,7 +189,7 @@ namespace OpenRA.Platforms.Default
// If the calling thread is the main game thread, this means it can run more logic and render ticks.
// This is disabled on Windows because it breaks the ability to minimize/restore the window from the taskbar for reasons that we dont understand.
var threadedRenderer = Platform.CurrentPlatform != PlatformType.Windows || !Game.Settings.Graphics.DisableWindowsRenderThread;
if (threadedRenderer)
if (!threadedRenderer)
{
var ctx = new Sdl2GraphicsContext(this);
ctx.InitializeOpenGL();