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)
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

index a03cb68ec8aef2e822056cd0963b5dcf1c56478e..87d116ad9f12ded3e5f378d454809a9e5491c882 100644 (file)
@@ -855,7 +855,6 @@ init_temp_texture(GLcontext *ctx, struct temp_texture *tex)
    assert(tex->MaxSize > 0);
 
    _mesa_GenTextures(1, &tex->TexObj);
-   _mesa_BindTexture(tex->Target, tex->TexObj);
 }