mesa: don't use format chooser code for glCompressedTexImage
authorBrian Paul <brianp@vmware.com>
Fri, 1 Feb 2013 01:49:01 +0000 (18:49 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 4 Feb 2013 14:58:21 +0000 (07:58 -0700)
commit478056b81ae80ea3301511fb99b7ba5845202379
treec68177188553fe402801371f2b59b207e4d862f5
parent44aa2e15f692965be76229e67f919bf967fc7d67
mesa: don't use format chooser code for glCompressedTexImage

When glCompressedTexImage is called the internalFormat is a specific
format for the incoming image and the the hardware format should be
the same (since we never do format transcoding).  So use the simpler
_mesa_glenum_to_compressed_format() function.  This change is also
needed for the next patch.

Note: This is a candidate for the stable branches.
src/mesa/main/teximage.c