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>
This commit is contained in:
Nicolai Hähnle
2016-06-09 12:16:26 +02:00
parent 615ba11563
commit a571859fc4
12 changed files with 17 additions and 0 deletions

View File

@@ -401,6 +401,7 @@ st_Clear(struct gl_context *ctx, GLbitfield mask)
GLuint i;
st_flush_bitmap_cache(st);
st_invalidate_readpix_cache(st);
/* This makes sure the pipe has the latest scissor, etc values */
st_validate_state( st, ST_PIPELINE_RENDER );