summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-03-22 13:35:20 +1000
committerDave Airlie <[email protected]>2010-03-23 19:12:33 +1000
commit2a3accbc00c565e6641f926d6d3761249540fdea (patch)
tree71bcb575e4107110e75f53c989881de043b22d22 /src/gallium/drivers/r300
parent7a0bcba9f9d7a4dcba11d06f207a5d494a330d5f (diff)
r300g: fix glean occlusion query test
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_query.c b/src/gallium/drivers/r300/r300_query.c
index ca00b043c51..9822e6b48dd 100644
--- a/src/gallium/drivers/r300/r300_query.c
+++ b/src/gallium/drivers/r300/r300_query.c
@@ -97,8 +97,10 @@ static void r300_end_query(struct pipe_context* pipe,
struct pipe_query* query)
{
struct r300_context* r300 = r300_context(pipe);
+ struct r300_query* q = (struct r300_query*)query;
r300_emit_query_end(r300);
+ q->begin_emitted = false;
r300->query_current = NULL;
}