mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
vbo: don't check ctx->NewState twice in glBegin
_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>
This commit is contained in:
parent
f2c6de1eec
commit
8c76ef5b59
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue