diff options
author | Marek Olšák <[email protected]> | 2020-01-22 21:32:34 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-11 00:34:57 +0000 |
commit | 8c76ef5b590d5795ec2dafb9304747ed74fd37a2 (patch) | |
tree | 8280feddef6a10ef59a240dacb958f8da88103ea /src/mesa/vbo | |
parent | f2c6de1eecb52ded412a88c4724f042c0c75d5f7 (diff) |
vbo: don't check ctx->NewState twice in glBegin
_mesa_valid_to_render does it too.
Reviewed-by: Mathias Fröhlich <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_exec_api.c | 3 |
1 files changed, 0 insertions, 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; } |