fix threadedRenderer context creation logic
This commit is contained in:
@@ -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.
|
// 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.
|
// 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;
|
var threadedRenderer = Platform.CurrentPlatform != PlatformType.Windows || !Game.Settings.Graphics.DisableWindowsRenderThread;
|
||||||
if (threadedRenderer)
|
if (!threadedRenderer)
|
||||||
{
|
{
|
||||||
var ctx = new Sdl2GraphicsContext(this);
|
var ctx = new Sdl2GraphicsContext(this);
|
||||||
ctx.InitializeOpenGL();
|
ctx.InitializeOpenGL();
|
||||||
|
|||||||
Reference in New Issue
Block a user