summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-03 12:01:53 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-03 12:01:53 -0600
commit0bc2e2c9cd552e4187dd8a2250e350efcdc9aea1 (patch)
tree301854716857965aedeaac80490caf9ba690b7b7 /src/mesa
parentf07fe3c728aec5a715cf615822151e11a00cda44 (diff)
gallium: call st_flush_bitmap_cache()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_readpixels.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c
index e9fcdf69a1..82df28b29a 100644
--- a/src/mesa/state_tracker/st_cb_readpixels.c
+++ b/src/mesa/state_tracker/st_cb_readpixels.c
@@ -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);