st/mesa: do proper error checking for u_upload_alloc() calls
authorBrian Paul <brianp@vmware.com>
Thu, 24 Jan 2013 21:51:05 +0000 (14:51 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 20:48:36 +0000 (21:48 +0100)
commitc760677c85a1019eef67b2ce0ce97e8218918f44
treeaeec356eee3f2073a9209f25351a6254543bd354
parenta1cb12c1fbec30c23d50209db2fbf2b563ddcbe0
st/mesa: do proper error checking for u_upload_alloc() calls

We weren't properly checking the return value of these calls (and
calls to u_upload_data()) to detect OOM errors.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 8c3f9ea07392177b6de9d946d40f97128fa51632)
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_drawtex.c
src/mesa/state_tracker/st_draw.c