diff options
author | Brian Paul <[email protected]> | 2006-05-09 13:51:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-05-09 13:51:17 +0000 |
commit | 008ed1df83735c72c2731c509a3665938d3c7209 (patch) | |
tree | f08ae0c53abfa916f28f408d8dac17ab5b3725c5 /src/mesa/main/get_gen.py | |
parent | 5e4c39dc0e0fd6bc4324aa9030430822348aa3b4 (diff) |
Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whether
all formats or just those without restrictions/limitations should be returned.
We want all when validating the internalFormat parameter to
glCompressedTexImage2D but only want unrestricted formats when handling the
GL_COMPRESSED_TEXTURE_FORMATS query.
Diffstat (limited to 'src/mesa/main/get_gen.py')
-rw-r--r-- | src/mesa/main/get_gen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/get_gen.py b/src/mesa/main/get_gen.py index 63aed5ab252..78d50663550 100644 --- a/src/mesa/main/get_gen.py +++ b/src/mesa/main/get_gen.py @@ -516,11 +516,12 @@ StateVars = [ ( "GL_TEXTURE_COMPRESSION_HINT_ARB", GLint, ["ctx->Hint.TextureCompression"], "", ["ARB_texture_compression"] ), ( "GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB", GLint, - ["_mesa_get_compressed_formats(ctx, NULL)"], "", ["ARB_texture_compression"] ), + ["_mesa_get_compressed_formats(ctx, NULL, GL_FALSE)"], + "", ["ARB_texture_compression"] ), ( "GL_COMPRESSED_TEXTURE_FORMATS_ARB", GLenum, [], """GLint formats[100]; - GLuint i, n = _mesa_get_compressed_formats(ctx, formats); + GLuint i, n = _mesa_get_compressed_formats(ctx, formats, GL_FALSE); ASSERT(n <= 100); for (i = 0; i < n; i++) params[i] = ENUM_TO_INT(formats[i]);""", |