mesa: Clear cache->trans after destroying the transfer.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 4 Mar 2009 16:43:13 +0000 (16:43 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 4 Mar 2009 16:43:45 +0000 (16:43 +0000)
src/mesa/state_tracker/st_cb_bitmap.c

index f77ac14762f6e73116efa6466ad1a463a7eb85f3..eecedc20f0265e3251299f7a616cedaa00b2a788 100644 (file)
@@ -624,6 +624,7 @@ st_flush_bitmap_cache(struct st_context *st)
          cache->buffer = NULL;
 
          screen->tex_transfer_destroy(cache->trans);
+         cache->trans = NULL;
 
          draw_bitmap_quad(st->ctx,
                           cache->xpos,