summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_XML.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-01-25 01:20:11 +0000
committerIan Romanick <idr@us.ibm.com>2005-01-25 01:20:11 +0000
commit85f0fa3761f8673ef48e46e0670ac816a34f000a (patch)
tree4d52a0ca758fa4ef9b0663d0a04f03282f5c66ee /src/mesa/glapi/glX_XML.py
parentcb59bd44dbf0e56058dbb4595ca7fbbbacbd3670 (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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py
index 4c9da6e304..9d8fe00096 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 )