aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_gen_mipmap.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-06-09 12:16:26 +0200
committerNicolai Hähnle <[email protected]>2016-06-21 10:54:19 +0200
commita571859fc446a9ba106ba4586603b5a01e7cc52a (patch)
tree5a0cb9e25e4ae2ff81cffb6462b4eb0ec8e8d2c3 /src/mesa/state_tracker/st_gen_mipmap.c
parent615ba115632c602d2a77535c1d52024f827a0ace (diff)
st/mesa: invalidate readpixels cache
Whenever a draw happens or some other function call might change the result of future glReadPixels calls, we must invalidate the cache. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_gen_mipmap.c')
-rw-r--r--src/mesa/state_tracker/st_gen_mipmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c
index adf02e71fd8..10af11e17b4 100644
--- a/src/mesa/state_tracker/st_gen_mipmap.c
+++ b/src/mesa/state_tracker/st_gen_mipmap.c
@@ -98,6 +98,7 @@ st_generate_mipmap(struct gl_context *ctx, GLenum target,
return;
st_flush_bitmap_cache(st);
+ st_invalidate_readpix_cache(st);
/* The texture isn't in a "complete" state yet so set the expected
* lastLevel here, since it won't get done in st_finalize_texture().