From: Erik Faye-Lund Date: Tue, 4 Dec 2018 12:52:25 +0000 (+0100) Subject: mesa/st: remove impossible error-check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0607ceb655d594bbc9b3240fb66be217acb36b8a;p=mesa.git 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 Reviewed-by: Marek Olšák --- 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;