meta: use _mesa_set_enable(), fix decompress_texture_image()
authorBrian Paul <brianp@vmware.com>
Tue, 20 Sep 2011 17:48:57 +0000 (11:48 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 02:17:42 +0000 (20:17 -0600)
commit9e414865a6716f688c7bce904d841f9ba16cd967
treef0c7600e7dd08099418daae0f9794e47c13294ac
parent20b92c9d1ed8802cf0acb1c24884d0cef2bce10e
meta: use _mesa_set_enable(), fix decompress_texture_image()

Use _mesa_set_enable() to avoid a redudant context lookup.
Need to disable the texture target in decompress_texture_image() so the
unit isn't still enabled after glGetTexImage() returns.  Arguably, the
meta restore code should do this, but it doesn't.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c