OSDN Git Service

meta: fix broken sRGB mipmap generation
authorBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2011 17:26:54 +0000 (11:26 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 02:17:42 +0000 (20:17 -0600)
commit1e939f53749781312b1b3b729e2d73493ae6b304
tree9719833f4da5f66a750bbd7d284877ed74bec8c7
parent4731a598f00c8a229df7b36d9a2a7505b679de1d
meta: fix broken sRGB mipmap generation

If we're generating a mipmap for an sRGB texture we need to bypass
sRGB->linear conversion.  Otherwise the destination mipmap level
(drawn with a textured quad) will have the wrong colors.
If we can't turn of sRGB->linear conversion (GL_EXT_texture_sRGB_decode)
we need to use the software fallback for mipmap generation.

Note: This is a candidate for the 7.11 branch.
src/mesa/drivers/common/meta.c