From 8ef0519bbe0318920170e82b6b52853920a897c4 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 3 Oct 2005 15:05:40 +0000 Subject: Change the 'count' for COMPRESSED_TEXTURE_FORMATS from "?" to "-1". This signals to the script (glX_proto_size.py) that generates the server-side size functions that a handcoded query is needed to determine the data size. Also do s/FOG_COORD_SOURCE/FOG_COORD_SRC/. When initializing the count in glx_enum::__init__, cast the local property to int. Thanks to Python's dynamic typing, if this isn't done the type of stored count will be a string instead of an int. --- src/mesa/glapi/glX_XML.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/glapi/glX_XML.py') diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py index e0f07e576e..7cc9d8d664 100644 --- a/src/mesa/glapi/glX_XML.py +++ b/src/mesa/glapi/glX_XML.py @@ -59,6 +59,8 @@ class glx_enum(gl_XML.gl_enum): if not c: c = self.default_count + else: + c = int(c) if m == "get": mode = 0 -- cgit v1.2.3