gallium: call st_flush_bitmap_cache()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 3 Apr 2008 18:01:53 +0000 (12:01 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 3 Apr 2008 18:01:53 +0000 (12:01 -0600)
src/mesa/state_tracker/st_cb_readpixels.c

index e9fcdf69a140ebfec30613e295affc04fc55ff84..82df28b29a1cb1dcf533ccd91075d37914fe04d9 100644 (file)
@@ -159,6 +159,8 @@ st_readpixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
    if (!dest)
       return;
 
+   st_flush_bitmap_cache(ctx->st);
+
    /* make sure rendering has completed */
    pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, NULL);