diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-06-09 12:16:26 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-06-21 10:54:19 +0200 |
commit | a571859fc446a9ba106ba4586603b5a01e7cc52a (patch) | |
tree | 5a0cb9e25e4ae2ff81cffb6462b4eb0ec8e8d2c3 /src/mesa/state_tracker/st_cb_blit.c | |
parent | 615ba115632c602d2a77535c1d52024f827a0ace (diff) | |
download | external_mesa3d-a571859fc446a9ba106ba4586603b5a01e7cc52a.zip external_mesa3d-a571859fc446a9ba106ba4586603b5a01e7cc52a.tar.gz external_mesa3d-a571859fc446a9ba106ba4586603b5a01e7cc52a.tar.bz2 |
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 <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_blit.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_blit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_blit.c b/src/mesa/state_tracker/st_cb_blit.c index be0b103..826152d 100644 --- a/src/mesa/state_tracker/st_cb_blit.c +++ b/src/mesa/state_tracker/st_cb_blit.c @@ -97,6 +97,7 @@ st_BlitFramebuffer(struct gl_context *ctx, /* Make sure bitmap rendering has landed in the framebuffers */ st_flush_bitmap_cache(st); + st_invalidate_readpix_cache(st); clip.srcX0 = srcX0; clip.srcY0 = srcY0; |