summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-19 15:32:35 -0500
committerMarge Bot <[email protected]>2020-03-06 01:06:14 +0000
commit245f9593b7967521bd6661d7059096c528cc7f0d (patch)
tree309f51bc7b077ee82833f2cb77bbade3c2c6f92b
parentd93f4faefb0a867ea33b9530e9aa67ae1ed60e93 (diff)
glthread: don't prefix variable_data with const
Not all variable data that is constant is declared with const, such as glDeletePerfMonitorsAMD. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
-rw-r--r--src/mapi/glapi/gen/gl_marshal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index a994a1425bc..9d5d5ad9e27 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -189,11 +189,11 @@ class PrintCode(gl_XML.gl_print_base):
if func.variable_params:
for p in func.variable_params:
- out('const {0} * {1};'.format(
+ out('{0} * {1};'.format(
p.get_base_type_string(), p.name))
out('const char *variable_data = (const char *) (cmd + 1);')
for p in func.variable_params:
- out('{0} = (const {1} *) variable_data;'.format(
+ out('{0} = ({1} *) variable_data;'.format(
p.name, p.get_base_type_string()))
if p.img_null_flag: