summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_readpixels.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-04-04 20:30:29 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-04-04 20:30:29 +1000
commite902d9091c048531cf76b1d9d034fb865b1a0f6e (patch)
tree6594c42173c215b9b17ac904a7d05a1568d53d31 /src/mesa/state_tracker/st_cb_readpixels.c
parentbc67533f29abe578e2306be2a24db392a0c62fc4 (diff)
parent7a7bce7b24ea4f63faa1d5bfe3f71d09b412c838 (diff)
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Diffstat (limited to 'src/mesa/state_tracker/st_cb_readpixels.c')
-rw-r--r--src/mesa/state_tracker/st_cb_readpixels.c3
1 files changed, 3 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..2bcc8c99fb 100644
--- a/src/mesa/state_tracker/st_cb_readpixels.c
+++ b/src/mesa/state_tracker/st_cb_readpixels.c
@@ -43,6 +43,7 @@
#include "pipe/p_inlines.h"
#include "util/p_tile.h"
#include "st_context.h"
+#include "st_cb_bitmap.h"
#include "st_cb_readpixels.h"
#include "st_cb_fbo.h"
#include "st_format.h"
@@ -159,6 +160,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);