Mesa (master): st/mesa: call st_flush_bitmap_cache() from st_readpixels()

Brian Paul brianp at kemper.freedesktop.org
Mon May 17 18:44:02 UTC 2010


Module: Mesa
Branch: master
Commit: ddf09d20df8b9b4706e3abf901cb8879b02951db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ddf09d20df8b9b4706e3abf901cb8879b02951db

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 17 12:43:25 2010 -0600

st/mesa: call st_flush_bitmap_cache() from st_readpixels()

Fixes regression from commit b0427bedde80e3189524651a327235bdfddbc613.

Reviewed-by: José Fonseca <jfonseca at vmware.com>

---

 src/mesa/state_tracker/st_cb_readpixels.c |    3 +++
 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 12d3c99..b8493da 100644
--- a/src/mesa/state_tracker/st_cb_readpixels.c
+++ b/src/mesa/state_tracker/st_cb_readpixels.c
@@ -46,6 +46,7 @@
 #include "st_debug.h"
 #include "st_context.h"
 #include "st_atom.h"
+#include "st_cb_bitmap.h"
 #include "st_cb_readpixels.h"
 #include "st_cb_fbo.h"
 
@@ -344,6 +345,8 @@ st_readpixels(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height,
       return;
    }
 
+   st_flush_bitmap_cache(st);
+
    dest = _mesa_map_pbo_dest(ctx, &clippedPacking, dest);
    if (!dest)
       return;




More information about the mesa-commit mailing list