renderer: fix ambiguous else warning

macos/master
Dave Airlie 6 years ago
parent 97b9df0aa8
commit cdf88604e9
  1. 6
      src/vrend_renderer.c

@ -7150,13 +7150,14 @@ 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);
@ -7165,6 +7166,7 @@ static void vrend_pause_render_condition(struct vrend_context *ctx, bool pause)
ctx->sub->cond_render_gl_mode);
}
}
}
void vrend_render_condition(struct vrend_context *ctx,
uint32_t handle,

Loading…
Cancel
Save