Commit 53348f89 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

opengl32: If there's no glX context don't return a wgl context.

parent 0f0ee255
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment