From 7cd6e2df65de9e2f0d77022a64c4e48ca2ebcb33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 9 Apr 2017 16:03:59 +0200 Subject: [PATCH] st/mesa: invalidate the readpix cache in st_indirect_draw_vbo Cc: Reviewed-by: Ilia Mirkin Reviewed-by: Brian Paul --- src/mesa/state_tracker/st_draw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 561633cdaf0..8069f107880 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -274,6 +274,8 @@ st_indirect_draw_vbo(struct gl_context *ctx, assert(ctx->NewState == 0x0); assert(stride); + st_invalidate_readpix_cache(st); + /* Validate state. */ if ((st->dirty | ctx->NewDriverState) & ST_PIPELINE_RENDER_STATE_MASK || st->gfx_shaders_may_be_dirty) { -- 2.30.2