glapi: fix generator scripts w.r.t. GLX_USE_APPLEGL

Commit 80b280db88 changed the .c files
instead of the .py generator scripts.
This commit is contained in:
Brian Paul
2010-05-11 21:40:25 -06:00
parent 6c06e2f053
commit 903986ca12
2 changed files with 2 additions and 2 deletions

View File

@@ -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'