Skip to content

Commit 252ea01

Browse files
committed
Fixed changing fullscreen to the same value on OpenGL forcing the window to be either fullscreen or normal, which broke maximizing
1 parent 59f6c23 commit 252ea01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/engine/Stride.Graphics/OpenGL/SwapChainGraphicsPresenter.OpenGL.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public override bool IsFullScreen
3636
set
3737
{
3838
var gameWindow = (Window)Description.DeviceWindowHandle.NativeWindow;
39-
if (gameWindow.Exists)
39+
if (gameWindow.Exists && value != (gameWindow.WindowState == WindowState.Fullscreen))
4040
gameWindow.WindowState = value ? WindowState.Fullscreen : WindowState.Normal;
4141
}
4242
}

0 commit comments

Comments
 (0)