mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
opengl32: If there's no glX context don't return a wgl context.
This commit is contained in:
parent
0f0ee255f6
commit
53348f8966
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue