apply previous GL_COMPRESSED_TEXTURE_FORMATS_ARB fix to generator file, and regenerate get.c

This commit is contained in:
Brian Paul
2005-04-30 18:30:16 +00:00
parent 7d33053e47
commit 1c54579e86
2 changed files with 7 additions and 3 deletions

View File

@@ -1082,8 +1082,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
{ {
GLint formats[100]; GLint formats[100];
GLuint i, n = _mesa_get_compressed_formats(ctx, formats); GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
ASSERT(n <= 100);
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
params[i] = ENUM_TO_BOOLEAN(formats[i]); params[i] = ENUM_TO_INT(formats[i]);
} }
break; break;
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT: case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
@@ -2925,8 +2926,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
{ {
GLint formats[100]; GLint formats[100];
GLuint i, n = _mesa_get_compressed_formats(ctx, formats); GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
ASSERT(n <= 100);
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
params[i] = ENUM_TO_BOOLEAN(formats[i]); params[i] = ENUM_TO_INT(formats[i]);
} }
break; break;
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT: case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
@@ -4768,6 +4770,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
{ {
GLint formats[100]; GLint formats[100];
GLuint i, n = _mesa_get_compressed_formats(ctx, formats); GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
ASSERT(n <= 100);
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
params[i] = ENUM_TO_INT(formats[i]); params[i] = ENUM_TO_INT(formats[i]);
} }

View File

@@ -508,8 +508,9 @@ StateVars = [
[], [],
"""GLint formats[100]; """GLint formats[100];
GLuint i, n = _mesa_get_compressed_formats(ctx, formats); GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
ASSERT(n <= 100);
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
params[i] = ENUM_TO_BOOLEAN(formats[i]);""", params[i] = ENUM_TO_INT(formats[i]);""",
"ARB_texture_compression" ), "ARB_texture_compression" ),
# GL_EXT_compiled_vertex_array # GL_EXT_compiled_vertex_array