From: Marek Olšák Date: Thu, 23 Jan 2020 02:27:02 +0000 (-0500) Subject: vbo: remove a funky recursive call in glBegin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2c6de1eecb52ded412a88c4724f042c0c75d5f7;p=mesa.git vbo: remove a funky recursive call in glBegin Reviewed-by: Mathias Fröhlich Part-of: --- 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; }