st/mesa: move out of memory check in st_draw_vbo()
authorBrian Paul <brianp@vmware.com>
Tue, 29 Oct 2013 00:33:32 +0000 (18:33 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Oct 2013 14:09:34 +0000 (08:09 -0600)
commitd0eaf6752d6faa8a17e3270b9e64b7c09ef705c2
tree535964b760f78c5813371e22762ca5cbc5ff499d
parentea9fe9ebdbc37648af099848531ce301580fdeec
st/mesa: move out of memory check in st_draw_vbo()

Before we were only checking the st->vertex_array_out_of_memory flag
after updating array state.  But if there's two consecutive glDrawArrays
calls and the first one is skipped because of OOM, the second one should
be skipped too.

Cc: 9.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_draw.c