From a991c0173162bff1620705744dc8faba11136b01 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 22 Jun 2016 14:36:46 +0200 Subject: [PATCH] Fail sharing if either window is context-less --- src/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;