From cdfa52d918a1323fe4243fe35f71a338e4f07d18 Mon Sep 17 00:00:00 2001 From: rtri Date: Tue, 21 Aug 2018 21:13:26 +0000 Subject: [PATCH] fix threadedRenderer context creation logic --- OpenRA.Platforms.Default/Sdl2PlatformWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs index 1c223b0ea3..7bc8ad45db 100644 --- a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs +++ b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs @@ -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();