/// Creates a base view with the given options.
diff --git a/src/Windowing/Silk.NET.Windowing.Common/Internals/WindowImplementationBase.cs b/src/Windowing/Silk.NET.Windowing.Common/Internals/WindowImplementationBase.cs
index b40660dd35..ff155fd40d 100644
--- a/src/Windowing/Silk.NET.Windowing.Common/Internals/WindowImplementationBase.cs
+++ b/src/Windowing/Silk.NET.Windowing.Common/Internals/WindowImplementationBase.cs
@@ -60,6 +60,7 @@ protected WindowImplementationBase(WindowOptions optionsCache) : base(new ViewOp
// Lifetime controls
protected override void CoreInitialize(ViewOptions opts)
{
+ _swapIntervalChanged = true;
ExtendedOptionsCache.ShouldSwapAutomatically = opts.ShouldSwapAutomatically;
ExtendedOptionsCache.IsEventDriven = opts.IsEventDriven;
ExtendedOptionsCache.FramesPerSecond = opts.FramesPerSecond;
@@ -157,6 +158,7 @@ public WindowState WindowState
CoreWindowState = value;
}
+ _swapIntervalChanged = true;
ExtendedOptionsCache.WindowState = value;
}
}
diff --git a/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs b/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs
index d6aca425df..ef86b890b6 100644
--- a/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs
+++ b/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs
@@ -552,6 +552,7 @@ public override IMonitor? Monitor
}
set
{
+ _swapIntervalChanged = true;
if (!IsInitialized)
{
throw new InvalidOperationException("Window is not running.");
diff --git a/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindow.cs b/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindow.cs
index c2d6d394ad..318234a363 100644
--- a/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindow.cs
+++ b/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindow.cs
@@ -121,6 +121,7 @@ public WindowState WindowState
: _extendedOptionsCache.WindowState;
set
{
+ _swapIntervalChanged = true;
_extendedOptionsCache.WindowState = value;
if (!IsInitialized)
{
@@ -269,6 +270,7 @@ public IMonitor? Monitor
}
set
{
+ _swapIntervalChanged = true;
if (!IsInitialized)
{
throw new InvalidOperationException("Window is not initialized.");
@@ -430,6 +432,7 @@ public override void ProcessEvents()
protected override void CoreInitialize(ViewOptions opts)
{
+ _swapIntervalChanged = true;
Sdl.Setenv("SDL_VIDEO_X11_WMCLASS", WindowClass, 1);
WindowFlags flags = 0;
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy