aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_cb_condrender.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-14 09:02:09 +0200
committermarha <marha@users.sourceforge.net>2011-07-14 09:02:09 +0200
commitd03a5f20114203fd00e0004659fd2617f4c03a32 (patch)
tree769d9c09953195385ac9c19aa31a1303b462d2d6 /mesalib/src/mesa/state_tracker/st_cb_condrender.c
parent3b47b2c35227184c0eb6dcf6dee8b79c4f9d4474 (diff)
downloadvcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.tar.gz
vcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.tar.bz2
vcxsrv-d03a5f20114203fd00e0004659fd2617f4c03a32.zip
mesa xserver git update 14 july 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_cb_condrender.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_cb_condrender.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_condrender.c b/mesalib/src/mesa/state_tracker/st_cb_condrender.c
index 64c6c117f..1ced560e1 100644
--- a/mesalib/src/mesa/state_tracker/st_cb_condrender.c
+++ b/mesalib/src/mesa/state_tracker/st_cb_condrender.c
@@ -41,6 +41,7 @@
#include "st_context.h"
#include "st_cb_queryobj.h"
#include "st_cb_condrender.h"
+#include "st_cb_bitmap.h"
/**
@@ -55,6 +56,8 @@ st_BeginConditionalRender(struct gl_context *ctx, struct gl_query_object *q,
struct pipe_context *pipe = st->pipe;
uint m;
+ st_flush_bitmap_cache(st);
+
switch (mode) {
case GL_QUERY_WAIT:
m = PIPE_RENDER_COND_WAIT;
@@ -90,6 +93,8 @@ st_EndConditionalRender(struct gl_context *ctx, struct gl_query_object *q)
struct pipe_context *pipe = st->pipe;
(void) q;
+ st_flush_bitmap_cache(st);
+
pipe->render_condition(pipe, NULL, 0);
st->render_condition = NULL;
}