diff options
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 8069f107880..d16160b656b 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -182,7 +182,9 @@ st_draw_vbo(struct gl_context *ctx, /* Mesa core state should have been validated already */ assert(ctx->NewState == 0x0); - st_flush_bitmap_cache(st); + if (unlikely(!st->bitmap.cache.empty)) + st_flush_bitmap_cache(st); + st_invalidate_readpix_cache(st); /* Validate state. */ |