mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
st/mesa: check in advance in st_draw_vbo whether the bitmap cache is empty
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
1fb5bc83f1
commit
86f99c1e4c
1 changed files with 3 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue