From 50e38b08780d698bad402150ab4fe007051cbc1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 4 Mar 2009 16:43:13 +0000 Subject: [PATCH] mesa: Clear cache->trans after destroying the transfer. --- src/mesa/state_tracker/st_cb_bitmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index f77ac14762f..eecedc20f02 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, -- 2.30.2