meta: Don't bind the created texture object in init_temp_texture().
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 17:52:30 +0000 (10:52 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 16 Sep 2010 19:00:57 +0000 (13:00 -0600)
commit50ac56bf98d6fd16fd1b7534268ee362e45b691d
tree76c2e4dcaf195b2f63da3551ec2b4df228cb3295
parent3a6f9d0f47861b1c618366d679ad8ddd9a06b323
meta: Don't bind the created texture object in init_temp_texture().

This function is executed outside _mesa_meta_begin/end(), that means
that e.g. _mesa_meta_Bitmap() clobbers the texturing state because it
changes the currently active texture object.

There's no need to bind the new texture when it's created, it's done
again later anyway (from setup_drawpix/copypix_texture()).

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c