mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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.
This commit is contained in:
parent
9a3a1497e5
commit
8ef0519bbe
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4115,7 +4115,7 @@
|
|||
<enum name="NUM_COMPRESSED_TEXTURE_FORMATS" count="1" value="0x86A2">
|
||||
<size name="Get" mode="get"/>
|
||||
</enum>
|
||||
<enum name="COMPRESSED_TEXTURE_FORMATS" count="?" value="0x86A3">
|
||||
<enum name="COMPRESSED_TEXTURE_FORMATS" count="-1" value="0x86A3">
|
||||
<size name="Get" mode="get"/>
|
||||
</enum>
|
||||
<enum name="CLAMP_TO_BORDER" value="0x812D"/>
|
||||
|
|
@ -4884,7 +4884,7 @@
|
|||
<enum name="DYNAMIC_READ" value="0x88E9"/>
|
||||
<enum name="DYNAMIC_COPY" value="0x88EA"/>
|
||||
<enum name="SAMPLES_PASSED" count="1" value="0x8914"/>
|
||||
<enum name="FOG_COORD_SOURCE" value="0x8450">
|
||||
<enum name="FOG_COORD_SRC" value="0x8450">
|
||||
<size name="Get" mode="get"/>
|
||||
</enum>
|
||||
<enum name="FOG_COORD" value="0x8451"/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue