From 7652b4a5b84583dd227fc562cbcd4621668abdab Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 16 Jul 2024 17:58:19 +0200 Subject: [PATCH] fix: Compiling on Linux with older glfw versions --- main/gui/source/window/linux_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/gui/source/window/linux_window.cpp b/main/gui/source/window/linux_window.cpp index 1fb95fb28..60fbbdd8e 100644 --- a/main/gui/source/window/linux_window.cpp +++ b/main/gui/source/window/linux_window.cpp @@ -74,7 +74,10 @@ namespace hex { } void Window::configureGLFW() { - glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GLFW_FALSE); + #if defined(GLFW_SCALE_FRAMEBUFFER) + glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GLFW_FALSE); + #endif + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_DECORATED, ImHexApi::System::isBorderlessWindowModeEnabled() ? GL_FALSE : GL_TRUE);