From 8c76ef5b590d5795ec2dafb9304747ed74fd37a2 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 22 Jan 2020 21:32:34 -0500 Subject: vbo: don't check ctx->NewState twice in glBegin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _mesa_valid_to_render does it too. Reviewed-by: Mathias Fröhlich Part-of: --- src/mesa/vbo/vbo_exec_api.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index f2417b58d84..315c2759b17 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -760,9 +760,6 @@ vbo_exec_Begin(GLenum mode) return; } - if (ctx->NewState) - _mesa_update_state(ctx); - if (!_mesa_valid_to_render(ctx, "glBegin")) { return; } -- cgit v1.2.3