diff options
author | José Fonseca <[email protected]> | 2009-04-20 16:40:12 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-04-20 16:44:37 +0100 |
commit | 708218119b9eb6e96d167e98e364e467ebe00bea (patch) | |
tree | 2c68f853296a229a32c250da40668616b7ea4237 /src/mesa/glapi/gl_procs.py | |
parent | 01397a66c77f8ebfe78b90ace59c095194a290cf (diff) |
mesa: Correct the gl_dispatch_stub_xxx prototypes.
Diffstat (limited to 'src/mesa/glapi/gl_procs.py')
-rw-r--r-- | src/mesa/glapi/gl_procs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/glapi/gl_procs.py b/src/mesa/glapi/gl_procs.py index 96e59a58ca1..cd1a68cee17 100644 --- a/src/mesa/glapi/gl_procs.py +++ b/src/mesa/glapi/gl_procs.py @@ -134,12 +134,11 @@ typedef struct { print "#endif /* USE_MGL_NAMESPACE */" print '' print '' - print '/* FIXME: Having these (incorrect) prototypes here is ugly. */' print '#if defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING)' for func in api.functionIterateByOffset(): for n in func.entry_points: if (not func.is_static_entry_point(func.name)) or (func.has_different_protocol(n) and not func.is_static_entry_point(n)): - print 'extern void gl_dispatch_stub_%u(void);' % (func.offset) + print '%s GLAPIENTRY gl_dispatch_stub_%u(%s);' % (func.return_type, func.offset, func.get_parameter_string()) break print '#endif /* defined(NEED_FUNCTION_POINTER) || defined(GLX_INDIRECT_RENDERING) */' |