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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user