Mesa (master): mesa/st: remove impossible error-check
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 29 10:36:19 UTC 2019
Module: Mesa
Branch: master
Commit: 0607ceb655d594bbc9b3240fb66be217acb36b8a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0607ceb655d594bbc9b3240fb66be217acb36b8a
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Tue Dec 4 13:52:25 2018 +0100
mesa/st: remove impossible error-check
st_setup_current never sets this flag, and it's already checked against
right before. So let's remove this pointless check.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/state_tracker/st_atom_array.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
index c5e0792cc1d..21e00ff17b9 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -564,8 +564,6 @@ st_update_array(struct st_context *st)
/* Setup current uploads */
first_upload_vbuffer = num_vbuffers;
st_setup_current(st, vp, vp_variant, velements, vbuffer, &num_vbuffers);
- if (st->vertex_array_out_of_memory)
- return;
/* Set the array into cso */
num_velements = vp_variant->num_inputs;
More information about the mesa-commit
mailing list