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

This commit is contained in:
Huw Davies 2006-06-22 20:18:01 +01:00 committed by Alexandre Julliard
parent 0f0ee255f6
commit 53348f8966

View file

@ -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;
}