mesa: Return the correct internal fmt when a generic compressed fmt was used
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 22 Jul 2011 22:26:24 +0000 (15:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Jul 2011 02:57:17 +0000 (19:57 -0700)
commit143b65f7612c255f29d08392192098b1c2bf4b62
treeba7b92032bc9d3ea9376c7a38f55e5ac68204c91
parent09916e877fc14723d7950f892e181df9f7d7f36f
mesa: Return the correct internal fmt when a generic compressed fmt was used

If an application requests a generic compressed format for a texture
and the driver does not pick a specific compressed format, return the
generic base format (e.g., GL_RGBA) for the GL_TEXTURE_INTERNAL_FORMAT
query.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3165
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texparam.c