summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-04 16:43:13 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-03-04 16:43:45 +0000
commit89f1f8f0b8fb684a7b1fce5bfbb961e4521745d7 (patch)
treec443121255130cdb439508399fa0045484d55723
parentca06c0c16d09d58f96736aa095e1a592862a9427 (diff)
mesa: Clear cache->trans after destroying the transfer.
-rw-r--r--src/mesa/state_tracker/st_cb_bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c
index f77ac14762..eecedc20f0 100644
--- a/src/mesa/state_tracker/st_cb_bitmap.c
+++ b/src/mesa/state_tracker/st_cb_bitmap.c
@@ -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,