vbo: don't check ctx->NewState twice in glBegin
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2020 02:32:34 +0000 (21:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
_mesa_valid_to_render does it too.

Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>

src/mesa/vbo/vbo_exec_api.c

index f2417b58d84e5db25ed326f6584fa467df1c4cf5..315c2759b178281a889b9a6ef2fca25cebba605f 100644 (file)
@@ -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;
    }