aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/wgl_ext_api.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-12-08 22:44:09 +0000
committermarha <marha@users.sourceforge.net>2009-12-08 22:44:09 +0000
commit610854e9a57f1a7d7dbfdef90d35f60fde7c6413 (patch)
treebcd51b5d4d6e708df363c5deeb7be713e58dc443 /xorg-server/hw/xwin/glx/wgl_ext_api.c
parentee49b108be991a90e1fd1670c52193433a7fb908 (diff)
downloadvcxsrv-610854e9a57f1a7d7dbfdef90d35f60fde7c6413.tar.gz
vcxsrv-610854e9a57f1a7d7dbfdef90d35f60fde7c6413.tar.bz2
vcxsrv-610854e9a57f1a7d7dbfdef90d35f60fde7c6413.zip
DC should only be released after the context is not current anymore on opengl
Diffstat (limited to 'xorg-server/hw/xwin/glx/wgl_ext_api.c')
-rw-r--r--xorg-server/hw/xwin/glx/wgl_ext_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/glx/wgl_ext_api.c b/xorg-server/hw/xwin/glx/wgl_ext_api.c
index ffe10884d..3aa6cbcce 100644
--- a/xorg-server/hw/xwin/glx/wgl_ext_api.c
+++ b/xorg-server/hw/xwin/glx/wgl_ext_api.c
@@ -42,12 +42,17 @@
#define RESOLVE_DECL(type) \
static type type##proc = NULL;
+#ifdef _DEBUG
#define PRERESOLVE(type, symbol) \
type##proc = (type)wglGetProcAddress(symbol); \
if (type##proc == NULL) \
ErrorF("wglwrap: Can't resolve \"%s\"\n", symbol); \
else \
ErrorF("wglwrap: Resolved \"%s\"\n", symbol);
+#else
+#define PRERESOLVE(type, symbol) \
+ type##proc = (type)wglGetProcAddress(symbol);
+#endif
#define RESOLVE_RET(type, symbol, retval) \
if (type##proc == NULL) { \