r600g: reset the render condition to NULL when rendering unconditionally
This commit is contained in:
parent
b40edc63d7
commit
9eac0fce83
|
@ -76,8 +76,12 @@ static void r600_render_condition(struct pipe_context *ctx,
|
||||||
int wait_flag = 0;
|
int wait_flag = 0;
|
||||||
|
|
||||||
/* If we already have nonzero result, render unconditionally */
|
/* If we already have nonzero result, render unconditionally */
|
||||||
if (query != NULL && rquery->result != 0)
|
if (query != NULL && rquery->result != 0) {
|
||||||
|
if (rctx->current_render_cond) {
|
||||||
|
r600_render_condition(ctx, NULL, 0);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
rctx->current_render_cond = query;
|
rctx->current_render_cond = query;
|
||||||
rctx->current_render_cond_mode = mode;
|
rctx->current_render_cond_mode = mode;
|
||||||
|
|
Loading…
Reference in New Issue