glfwSetWindowMaximizeCallback is added in 3.3

This commit is contained in:
Howard Su 2020-10-23 00:09:58 +08:00
parent 5400a4e18a
commit 6130428989

View File

@ -135,11 +135,11 @@ int sdrpp_main() {
glfwMakeContextCurrent(window); glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync glfwSwapInterval(1); // Enable vsync
#if (GLFW_VERSION_MAJOR == 3) && (GLFW_VERSION_MINOR >= 3)
if (maximized) { if (maximized) {
glfwMaximizeWindow(window); glfwMaximizeWindow(window);
} }
#if (GLFW_VERSION_MINOR == 3) && (GLFW_VERSION_MINOR >= 2)
glfwSetWindowMaximizeCallback(window, maximized_callback); glfwSetWindowMaximizeCallback(window, maximized_callback);
#endif #endif