fix: compatibility
Clang Build CI / run-no-video (push) Successful in 49s
Clang Build CI / run-video (push) Successful in 51s
Clang Lint CI / lint-no-video (push) Successful in 56s
Clang Build CI / build-release (push) Successful in 1m14s
Clang Lint CI / lint-video (push) Successful in 46s

This commit is contained in:
2026-08-27 17:21:30 +02:00
parent a440535953
commit 3a228122cf
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -89,7 +89,9 @@ create_window(GLFWmonitor *monitor, const char *title,
#ifdef GL_DEBUG
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
#endif
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
if (opengl_major > 4 || (opengl_major == 3 && opengl_minor >= 2)) {
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
}
// create fullscreen window in selected monitor
window = glfwCreateWindow(1, 1, title, monitor, shared_context);