From f2c6de1eecb52ded412a88c4724f042c0c75d5f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 22 Jan 2020 21:27:02 -0500 Subject: [PATCH] vbo: remove a funky recursive call in glBegin MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Mathias Fröhlich Part-of: --- src/mesa/vbo/vbo_exec_api.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 3b9f6521cda..f2417b58d84 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -760,13 +760,9 @@ vbo_exec_Begin(GLenum mode) return; } - if (ctx->NewState) { + if (ctx->NewState) _mesa_update_state(ctx); - CALL_Begin(ctx->Exec, (mode)); - return; - } - if (!_mesa_valid_to_render(ctx, "glBegin")) { return; } -- 2.30.2