From f2c6de1eecb52ded412a88c4724f042c0c75d5f7 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 22 Jan 2020 21:27:02 -0500 Subject: vbo: remove a funky recursive call in glBegin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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; } -- cgit v1.2.3