1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Compiling on Linux with older glfw versions

This commit is contained in:
WerWolv 2024-07-16 17:58:19 +02:00
parent fb249767f1
commit 7652b4a5b8

View File

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