vrend: Do not call glBeginConditionalRender twice

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/715>
macos/master
Akihiko Odaki 3 years ago committed by Marge Bot
parent 4155bdaef9
commit a038d52e91
  1. 2
      src/vrend_renderer.c

@ -10363,7 +10363,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