vbo: remove a funky recursive call in glBegin
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jan 2020 02:27:02 +0000 (21:27 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 00:34:57 +0000 (00:34 +0000)
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 3b9f6521cda30d608060095b1211ef45fca6f429..f2417b58d84e5db25ed326f6584fa467df1c4cf5 100644 (file)
@@ -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;
    }