mesa: fix error checking of DXT sRGB formats in _mesa_base_tex_format()
authorBrian Paul <brianp@vmware.com>
Thu, 30 May 2013 15:18:27 +0000 (09:18 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 May 2013 20:01:31 +0000 (14:01 -0600)
commit51498a3e71ebffb7eac4b0376045bf28c5c76e17
treee992a98fab83e54db4b31b89539e35f5e4de186b
parentfb1785197f26a76ff3b9b98dd178d0a9c378f979
mesa: fix error checking of DXT sRGB formats in _mesa_base_tex_format()

For formats such as GL_COMPRESSED_SRGB_S3TC_DXT1_EXT we need to
have both the GL_EXT_texture_sRGB and GL_EXT_texture_compression_s3tc
extensions.  This patch adds the missing check for the later.

Found when checking out https://bugs.freedesktop.org/show_bug.cgi?id=65173

NOTE: This is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/teximage.c