Huw Davies : opengl32: If there's no glX context don't return a wgl
context .
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 23 06:43:46 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 53348f896699978b983e5cd124b2385f00fccd74
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=53348f896699978b983e5cd124b2385f00fccd74
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Jun 22 20:18:01 2006 +0100
opengl32: If there's no glX context don't return a wgl context.
---
dlls/opengl32/wgl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index 1365d6c..2dd59a8 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;
}
More information about the wine-cvs
mailing list