From 6130428989c9836a08111deda3998271635acb5b Mon Sep 17 00:00:00 2001 From: Howard Su Date: Fri, 23 Oct 2020 00:09:58 +0800 Subject: [PATCH] glfwSetWindowMaximizeCallback is added in 3.3 --- core/src/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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