From 74af48bdd477166c0c535d56718ccd4340a78137 Mon Sep 17 00:00:00 2001 From: unkn0t Date: Thu, 3 Apr 2025 14:17:27 +0500 Subject: [PATCH] Fix issue with incorrect scaling on Wayland --- src/window/detail/GLFWWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window/detail/GLFWWindow.cpp b/src/window/detail/GLFWWindow.cpp index d6b30477..7349dced 100644 --- a/src/window/detail/GLFWWindow.cpp +++ b/src/window/detail/GLFWWindow.cpp @@ -630,6 +630,10 @@ std::tuple< glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); +#if GLFW_VERSION_MAJOR >= 3 && GLFW_VERSION_MINOR >= 4 + // see issue #465 + glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GL_FALSE); +#endif #ifdef __APPLE__ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);