opengl32: If there's no glX context don't return a wgl context.
This commit is contained in:
parent
0f0ee255f6
commit
53348f8966
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue