diff options
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r-- | src/mapi/glapi/gen/gl_enums.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index d37eb5c74a1..05125f568ea 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -55,7 +55,7 @@ class PrintGlEnums(gl_XML.gl_print_base): print '#include "main/mtypes.h"' print '' print 'typedef struct PACKED {' - print ' uint16_t offset;' + print ' uint32_t offset;' print ' int n;' print '} enum_elt;' print '' @@ -87,8 +87,6 @@ const char *_mesa_enum_to_string( int nr ) { enum_elt *elt; - STATIC_ASSERT(sizeof(enum_string_table) < (1 << 16)); - elt = bsearch(& nr, enum_string_table_offsets, ARRAY_SIZE(enum_string_table_offsets), sizeof(enum_string_table_offsets[0]), |