st/mesa: generate GL_OUT_OF_MEMORY if we can't create the index buffer
authorBrian Paul <brianp@vmware.com>
Wed, 8 May 2013 16:18:49 +0000 (10:18 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 9 May 2013 13:43:46 +0000 (07:43 -0600)
commite0144019c08cec64edb78c4f01d78bfbc2aa2edd
treea3f7335e0fd31cf4f3a7c657e8bc4d534149f479
parenta8e46140718b85fd33be97c693050f8722db1def
st/mesa: generate GL_OUT_OF_MEMORY if we can't create the index buffer

Before, if we failed to allocate the index buffer we'd silently
return from st_draw_vbo() without drawing anything.  We should
raise GL_OUT_OF_MEMORY to give some indication that something went
wrong.

Note: This is a candidate for the stable branches.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_draw.c