diff --git a/src/window.c b/src/window.c index 113ed80f..70eb3283 100644 --- a/src/window.c +++ b/src/window.c @@ -151,7 +151,8 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, if (ctxconfig.share) { - if (ctxconfig.share->context.client == GLFW_NO_API) + if (ctxconfig.client == GLFW_NO_API || + ctxconfig.share->context.client == GLFW_NO_API) { _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); return NULL;