mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Don't crash if window creation fails due to selected renderer.
This commit is contained in:
@@ -492,6 +492,10 @@ namespace Robust.Client.Graphics.Clyde
|
||||
parameters.Fullscreen ? monitor : null,
|
||||
contextShare);
|
||||
|
||||
// Check if window failed to create.
|
||||
if (window == null)
|
||||
return null;
|
||||
|
||||
if (parameters.Maximized)
|
||||
{
|
||||
GLFW.GetMonitorPos(monitor, out var x, out var y);
|
||||
|
||||
Reference in New Issue
Block a user