From d351ad0ae7b18bebbe47df01a238f453c9d90c96 Mon Sep 17 00:00:00 2001 From: Tehsapper Date: Mon, 16 Sep 2024 20:41:43 +0900 Subject: [PATCH] fix windowed mode switch --- src/limitless/core/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/limitless/core/context.cpp b/src/limitless/core/context.cpp index c8d21370..47cbc185 100644 --- a/src/limitless/core/context.cpp +++ b/src/limitless/core/context.cpp @@ -134,7 +134,7 @@ void Context::setFullscreen(bool value) noexcept { const auto* mode = glfwGetVideoMode(monitor.value()); monitor = std::nullopt; - glfwSetWindowMonitor(window, monitor.value(), 0, 0, mode->width, mode->height, mode->refreshRate); + glfwSetWindowMonitor(window, nullptr, 0, 0, mode->width, mode->height, mode->refreshRate); } }