From cdf88604e90d6cf39a7ab349b46a4c330af46c74 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 23 Jul 2018 17:23:08 +1000 Subject: [PATCH] renderer: fix ambiguous else warning --- src/vrend_renderer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 3129292..13a61bb 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7150,19 +7150,21 @@ void vrend_get_query_result(struct vrend_context *ctx, uint32_t handle, static void vrend_pause_render_condition(struct vrend_context *ctx, bool pause) { if (pause) { - if (ctx->sub->cond_render_q_id) + if (ctx->sub->cond_render_q_id) { if (vrend_state.have_gl_conditional_render) glEndConditionalRender(); else if (vrend_state.have_nv_conditional_render) glEndConditionalRenderNV(); + } } else { - if (ctx->sub->cond_render_q_id) + if (ctx->sub->cond_render_q_id) { if (vrend_state.have_gl_conditional_render) glBeginConditionalRender(ctx->sub->cond_render_q_id, ctx->sub->cond_render_gl_mode); else if (vrend_state.have_nv_conditional_render) glBeginConditionalRenderNV(ctx->sub->cond_render_q_id, ctx->sub->cond_render_gl_mode); + } } }