diff options
author | Ian Romanick <[email protected]> | 2005-03-17 20:56:13 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-03-17 20:56:13 +0000 |
commit | 6af6a6931240b1e05b3bb7cc2b56df29193ea65a (patch) | |
tree | 7b17c2d97ea1afbd7c9ae6c8a19bb9abebfadaa9 /src/mesa/glapi/glX_XML.py | |
parent | 979f35fb78f39cec5de53795ce91f674bfb9df52 (diff) |
Minor refactoring and code tweaking. The only notable chage is that
FilterGLAPISpecBase::xref is replaced by
FilterGLAPISpecBase::functions_by_name. The notable difference between the
two is that ::functions_by_name includes all functions, whether they have an
assigned offset or not. This feature will be useful (necessary) when more
server-side code is generated.
Diffstat (limited to 'src/mesa/glapi/glX_XML.py')
-rw-r--r-- | src/mesa/glapi/glX_XML.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py index 3f6f841d784..98be9965704 100644 --- a/src/mesa/glapi/glX_XML.py +++ b/src/mesa/glapi/glX_XML.py @@ -416,10 +416,9 @@ class glXFunction(gl_XML.glFunction): def variable_length_parameter(self): - for param in self.fn_parameters: - if param.is_variable_length_array(): - return param - + if len(self.variable_length_parameters): + return self.variable_length_parameters[0] + return None |