st/mesa: invalidate readpixels cache
[mesa.git] / src / mesa / state_tracker / st_cb_clear.c
index d630664704b07d13d6ab79e130ac6f68d2547335..e70cba6f93882f51e370331432617130f5985977 100644 (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 );