vrend: Do not call glBeginConditionalRender twice

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
macos/master
Akihiko Odaki 3 years ago
parent 936a3e3982
commit 9535b22ef5
  1. 2
      src/vrend_renderer.c

@ -10325,7 +10325,7 @@ void vrend_render_condition(struct vrend_context *ctx,
ctx->sub->cond_render_gl_mode = glmode;
if (has_feature(feat_gl_conditional_render))
glBeginConditionalRender(q->id, glmode);
if (has_feature(feat_nv_conditional_render))
else if (has_feature(feat_nv_conditional_render))
glBeginConditionalRenderNV(q->id, glmode);
}

Loading…
Cancel
Save