From 53348f896699978b983e5cd124b2385f00fccd74 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 22 Jun 2006 20:18:01 +0100 Subject: [PATCH] opengl32: If there's no glX context don't return a wgl context. --- dlls/opengl32/wgl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 1365d6ce96e..2dd59a8f2fe 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -94,6 +94,7 @@ static Wine_GLContext *context_list; static inline Wine_GLContext *get_context_from_GLXContext(GLXContext ctx) { Wine_GLContext *ret; + if (!ctx) return NULL; for (ret = context_list; ret; ret = ret->next) if (ctx == ret->ctx) break; return ret; } -- 2.11.4.GIT