aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-22 21:32:34 -0500
committerMarge Bot <[email protected]>2020-02-11 00:34:57 +0000
commit8c76ef5b590d5795ec2dafb9304747ed74fd37a2 (patch)
tree8280feddef6a10ef59a240dacb958f8da88103ea /src/mesa/vbo
parentf2c6de1eecb52ded412a88c4724f042c0c75d5f7 (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.c3
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;
}