From: Marek Olšák Date: Thu, 23 Jan 2020 02:32:34 +0000 (-0500) Subject: vbo: don't check ctx->NewState twice in glBegin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c76ef5b590d5795ec2dafb9304747ed74fd37a2;p=mesa.git vbo: don't check ctx->NewState twice in glBegin _mesa_valid_to_render does it too. 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 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; }