diff --git a/core/src/core.cpp b/core/src/core.cpp index db5461b6..6191bef3 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -135,11 +135,11 @@ int sdrpp_main() { glfwMakeContextCurrent(window); glfwSwapInterval(1); // Enable vsync +#if (GLFW_VERSION_MAJOR == 3) && (GLFW_VERSION_MINOR >= 3) if (maximized) { glfwMaximizeWindow(window); } -#if (GLFW_VERSION_MINOR == 3) && (GLFW_VERSION_MINOR >= 2) glfwSetWindowMaximizeCallback(window, maximized_callback); #endif