fix: Compiling on Linux with older glfw versions
This commit is contained in:
parent
fb249767f1
commit
7652b4a5b8
@ -74,7 +74,10 @@ namespace hex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Window::configureGLFW() {
|
void Window::configureGLFW() {
|
||||||
|
#if defined(GLFW_SCALE_FRAMEBUFFER)
|
||||||
glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GLFW_FALSE);
|
glfwWindowHint(GLFW_SCALE_FRAMEBUFFER, GLFW_FALSE);
|
||||||
|
#endif
|
||||||
|
|
||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
||||||
glfwWindowHint(GLFW_DECORATED, ImHexApi::System::isBorderlessWindowModeEnabled() ? GL_FALSE : GL_TRUE);
|
glfwWindowHint(GLFW_DECORATED, ImHexApi::System::isBorderlessWindowModeEnabled() ? GL_FALSE : GL_TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user