fix: renamed some symbols which were causing some compatibility problems

__FILE_NAME__ and GLFW_CONTEXT_DEBUG were causing problems in the CI
pipeline, thus I deemed them unreliable.
__FILE_NAME__ is not __FILE__ which is more universally used across
compilers.
and GLFW_CONTEXT_DEBUG has been replaced with GLFW_OPENGL_DEBUG_CONTEXT,
which is a legacy definition, which plays nicer on older platforms.
(like ubuntu)
This commit is contained in:
2025-06-08 00:59:42 +02:00
parent c77f711982
commit a7fb6136ea
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ static GLFWwindow* win = NULL;
int window_init(void) {
#ifndef NDEBUG
glfwWindowHint(GLFW_CONTEXT_DEBUG, GLFW_TRUE);
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
#endif
// initialize the window