summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/gl_XML.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/glapi/gl_XML.py')
-rw-r--r--src/mesa/glapi/gl_XML.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py
index 1c4e734f85..04890af3e5 100644
--- a/src/mesa/glapi/gl_XML.py
+++ b/src/mesa/glapi/gl_XML.py
@@ -91,9 +91,10 @@ class glEnum( glItem ):
glItem.__init__(self, name, enum_name, context)
temp = attrs.get('count', None)
- if temp == None:
- self.default_count = 0
- else:
+ self.default_count = 0
+ if temp == "?":
+ self.default_count = -1
+ elif temp:
try:
c = int(temp)
except Exception,e: