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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user