Merge pull request #503 from unkn0t/hidpi-fix

Fix issue #465 with incorrect scaling on Wayland
This commit is contained in:
MihailRis 2025-04-03 13:17:15 +03:00 committed by GitHub
commit c8c8b2a023
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);