mesa/st: remove impossible error-check
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 4 Dec 2018 12:52:25 +0000 (13:52 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 29 Apr 2019 10:28:38 +0000 (10:28 +0000)
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@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_array.c

index c5e0792cc1d7c71c35fcd810f645e7e3737f9fc2..21e00ff17b97627aa721d7f5f0f11ca7208e3d91 100644 (file)
@@ -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;