https://bugs.freedesktop.org/show_bug.cgi?id=100227

--- Comment #3 from Bartosz Tomczyk <bartosz.tomczy...@gmail.com> ---
I agree with  Gustaw, that it should be changed to  "const GLvoid *const".

Something like that should work(not tested):

--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -177,11 +177,11 @@ class PrintCode(gl_XML.gl_print_base):
         with indent():
             for p in func.fixed_params:
                 if p.count:
-                    out('const {0} * {1} = cmd->{1};'.format(
-                            p.get_base_type_string(), p.name))
+                    out('const {0} * const {1} = cmd->{1};'.format(
+                            p.get_base_type_string().lstrip('const'), p.name))
                 else:
                     out('const {0} {1} = cmd->{1};'.format(
-                            p.type_string(), p.name))
+                            p.type_string().lstrip('const'), p.name))
             if func.variable_params:
                 for p in func.variable_params:
                     out('const {0} * {1};'.format(

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to