summaryrefslogtreecommitdiff
path: root/src/mapi/glapi/gen/glX_proto_send.py
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-11 21:40:25 -0600
committerBrian Paul <brianp@vmware.com>2010-05-11 21:40:56 -0600
commit903986ca128d51ff031cc9eafa1976618834a8de (patch)
tree91ac49774f0d5046bd1b4e2a51234c80ade5dec7 /src/mapi/glapi/gen/glX_proto_send.py
parent6c06e2f053f18d9bc7d36ea52691c53456811c73 (diff)
glapi: fix generator scripts w.r.t. GLX_USE_APPLEGL
Commit 80b280db883edc9550484dba03bd5c124b6a9bf9 changed the .c files instead of the .py generator scripts.
Diffstat (limited to 'src/mapi/glapi/gen/glX_proto_send.py')
-rw-r--r--src/mapi/glapi/gen/glX_proto_send.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
index c52b85bfb4..e732282073 100644
--- a/src/mapi/glapi/gen/glX_proto_send.py
+++ b/src/mapi/glapi/gen/glX_proto_send.py
@@ -373,7 +373,7 @@ const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 };
print '{'
print ' __GLXcontext * const gc = __glXGetCurrentContext();'
print ''
- print '#ifdef GLX_DIRECT_RENDERING'
+ print '#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)'
print ' if (gc->driContext) {'
print ' %sCALL_%s(GET_DISPATCH(), (%s));' % (ret_string, func.name, func.get_called_parameter_string())
print ' } else'