diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2011-07-22 16:45:50 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2011-07-25 19:57:24 -0700 |
commit | b189d1635d89cd7d900e8f9a5eed88d7dc0b46cb (patch) | |
tree | 081d9086a8b10f93739e1b89b38d972ea025399b /src/mesa/main/get.c | |
parent | 143b65f7612c255f29d08392192098b1c2bf4b62 (diff) | |
download | external_mesa3d-b189d1635d89cd7d900e8f9a5eed88d7dc0b46cb.zip external_mesa3d-b189d1635d89cd7d900e8f9a5eed88d7dc0b46cb.tar.gz external_mesa3d-b189d1635d89cd7d900e8f9a5eed88d7dc0b46cb.tar.bz2 |
mesa: Make _mesa_get_compressed_formats match the texture compression specs
The implementation deviated slightly from the GL_EXT_texture_sRGB spec
and from other implementations. A giant comment block was added to
justify the somewhat odd behavior of this function.
In addition, the interface had unnecessary cruft. The 'all' parameter
was false at all callers, so it has been removed.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 0492e15..d32c68a 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1569,11 +1569,11 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu break; case GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB: - v->value_int = _mesa_get_compressed_formats(ctx, NULL, GL_FALSE); + v->value_int = _mesa_get_compressed_formats(ctx, NULL); break; case GL_COMPRESSED_TEXTURE_FORMATS_ARB: v->value_int_n.n = - _mesa_get_compressed_formats(ctx, v->value_int_n.ints, GL_FALSE); + _mesa_get_compressed_formats(ctx, v->value_int_n.ints); ASSERT(v->value_int_n.n <= 100); break; |