From 9535b22ef590cd55565bf379a57acc97690045a4 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Sun, 20 Feb 2022 17:28:39 +0900 Subject: [PATCH] vrend: Do not call glBeginConditionalRender twice Signed-off-by: Akihiko Odaki --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index e5908a6..5c862d1 100644 --- a/src/vrend_renderer.c +++ b/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); }