Update window.c

This commit is contained in:
Tungstend 2023-07-27 08:25:08 +08:00
parent 3a741f54f5
commit 8f828b6c57
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ GLFWAPI void glfwWindowHint(int hint, int value)
_glfw.hints.context.client = value;
return;
case GLFW_CONTEXT_CREATION_API:
_glfw.hints.context.source = value;
_glfw.hints.context.source = strcmp(getenv("LIBGL_NAME"), "libOSMesa_8.so") == 0 ? GLFW_OSMESA_CONTEXT_API : value;
return;
case GLFW_CONTEXT_VERSION_MAJOR:
_glfw.hints.context.major = value;