diff options
author | Ian Romanick <[email protected]> | 2005-01-25 01:20:11 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-01-25 01:20:11 +0000 |
commit | 85f0fa3761f8673ef48e46e0670ac816a34f000a (patch) | |
tree | 4d52a0ca758fa4ef9b0663d0a04f03282f5c66ee /src/mesa/glapi/glX_XML.py | |
parent | cb59bd44dbf0e56058dbb4595ca7fbbbacbd3670 (diff) |
Add a "count" attribute to "enums" elements to set the default count
used for "size" sub-elements. In the future the "count" attribute may
be removed completely from "size" sub-elements, so gl_API.xml was also
updated.
Support was added for a (currently unused) "mode" attribute for "size"
elements. Basically, functions are marked as either "get" or "set". This
will be used in generating size functions for the server-side (where the
"get" functions have to know how much data to return). It could also be
used to help generate code for src/mesa/main/get.c.
Diffstat (limited to 'src/mesa/glapi/glX_XML.py')
-rw-r--r-- | src/mesa/glapi/glX_XML.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py index 4c9da6e304d..9d8fe000961 100644 --- a/src/mesa/glapi/glX_XML.py +++ b/src/mesa/glapi/glX_XML.py @@ -244,7 +244,7 @@ class glXEnum(gl_XML.glEnum): def startElement(self, name, attrs): if name == "size": - [n, c] = self.process_attributes(attrs) + [n, c, mode] = self.process_attributes(attrs) if not self.context.glx_enum_functions.has_key( n ): f = glXEnumFunction( n ) |