aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/gen_gl_wrappers.py
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/gen_gl_wrappers.py
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/gen_gl_wrappers.py')
-rw-r--r--xorg-server/hw/xwin/glx/gen_gl_wrappers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/glx/gen_gl_wrappers.py b/xorg-server/hw/xwin/glx/gen_gl_wrappers.py
index e463ca7ee..6bba3079e 100644
--- a/xorg-server/hw/xwin/glx/gen_gl_wrappers.py
+++ b/xorg-server/hw/xwin/glx/gen_gl_wrappers.py
@@ -241,8 +241,10 @@ for w in sorted(wrappers.keys()) :
print 'static',
print returntype + ' __stdcall ' + funcname + 'Wrapper(' + arglist + ')'
print '{'
+ print '#ifdef _DEBUG'
print ' if (glxWinDebugSettings.enable' + prefix.upper() + 'callTrace) ErrorF("'+ funcname + '\\n");'
print ' glWinDirectProcCalls++;'
+ print '#endif'
if returntype.lower() == 'void' :
print ' ' + funcname + '(',
else :
@@ -287,11 +289,15 @@ for w in sorted(wrappers.keys()) :
if returntype.lower() == 'void' :
print ' RESOLVE(' + pfntypename + ', "' + stringname + '");'
+ print '#ifdef _DEBUG'
print ' if (glxWinDebugSettings.enable' + prefix.upper() + 'callTrace) ErrorF("'+ funcname + '\\n");'
+ print '#endif'
print ' RESOLVED_PROC(' + pfntypename + ')(',
else :
print ' RESOLVE_RET(' + pfntypename + ', "' + stringname + '", FALSE);'
+ print '#ifdef _DEBUG'
print ' if (glxWinDebugSettings.enable' + prefix.upper() + 'callTrace) ErrorF("'+ funcname + '\\n");'
+ print '#endif'
print ' return RESOLVED_PROC(' + pfntypename + ')(',
if arglist != 'void' :