diff options
author | Paul Berry <[email protected]> | 2012-11-07 13:49:41 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-04-19 10:12:36 -0700 |
commit | 57b7c20ca59eb232cbd0a3a8368d603cbc06c215 (patch) | |
tree | 72868c6393248f9c6c0a9234702f42315200ed92 | |
parent | fe955dc6b626a43036ff2a4cfe44511e10a09332 (diff) |
glapi: skip padding in get_called_parameter_string
This bug is currently benign, since get_called_parameter_string() is
currently only used for functions that return true for
glx_function.has_different_protocol(), and none of those functions
include padding. However, in order to implement marshalling of GL API
functions, we'll need to use get_called_parameter_string() far more
often.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mapi/glapi/gen/gl_XML.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index 227e9fcd9a4..3bbc794398f 100644 --- a/src/mapi/glapi/gen/gl_XML.py +++ b/src/mapi/glapi/gen/gl_XML.py @@ -802,6 +802,8 @@ class gl_function( gl_item ): comma = "" for p in self.parameterIterator(): + if p.is_padding: + continue p_string = p_string + comma + p.name comma = ", " |