diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-29 17:42:19 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-31 16:03:58 -0700 |
commit | e14b9c8c5e1d1ba0cfc5bb7a018c9505679e598b (patch) | |
tree | e3b5205f6b24311f1b32599d7886754e599228dc | |
parent | 10a7ea1e8b7b2eb238349b597844252f1a28c199 (diff) |
glapi: gl_XML.py: return a tuple from gl_parameter.get_dimensions
rather than a list.
In python tuples are mainly for heterogenous collections, especially
when position has relevance. Which makes them the right type for the
job.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r-- | src/mapi/glapi/gen/gl_XML.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index 561a86f90e..9f24e56112 100644 --- a/src/mapi/glapi/gen/gl_XML.py +++ b/src/mapi/glapi/gen/gl_XML.py @@ -492,7 +492,7 @@ class gl_parameter(object): def get_dimensions(self): if not self.width: - return [0, "0", "0", "0", "0"] + return (0, "0", "0", "0", "0") dim = 1 w = self.width @@ -512,7 +512,7 @@ class gl_parameter(object): dim = 4 e = self.extent - return [dim, w, h, d, e] + return (dim, w, h, d, e) def get_stack_size(self): return self.type_expr.get_stack_size() |