aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-22 21:27:02 -0500
committerMarge Bot <[email protected]>2020-02-11 00:34:57 +0000
commitf2c6de1eecb52ded412a88c4724f042c0c75d5f7 (patch)
treee9e0b13246acf40dae9afd4eebe8722a8ab2e27a
parent653bd14730035d514127b2253a025a1e98db5e75 (diff)
vbo: remove a funky recursive call in glBegin
Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
-rw-r--r--src/mesa/vbo/vbo_exec_api.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 3b9f6521cda..f2417b58d84 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -760,13 +760,9 @@ vbo_exec_Begin(GLenum mode)
return;
}
- if (ctx->NewState) {
+ if (ctx->NewState)
_mesa_update_state(ctx);
- CALL_Begin(ctx->Exec, (mode));
- return;
- }
-
if (!_mesa_valid_to_render(ctx, "glBegin")) {
return;
}