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)
committerBrian Paul <brianp@vmware.com>
Fri, 25 Jan 2013 22:41:40 +0000 (15:41 -0700)
commit8c3f9ea07392177b6de9d946d40f97128fa51632
tree17fbe09d0959a982397faac29a0ebc4fa62cbf73
parent68a097596efdf314ec60487a1761cac789ae2367
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>
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