st/mesa: bail out of try_pbo_upload_common when constant upload fails
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Feb 2016 17:02:55 +0000 (18:02 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 5 Feb 2016 14:21:51 +0000 (09:21 -0500)
commit7e9670c8bc9422296ce07dce99e1d266063952c3
tree64d989418067c7b462bb86e64df079f091656a12
parenta01e44adcc100a03d5aae0e4d668bf3ae462fc1b
st/mesa: bail out of try_pbo_upload_common when constant upload fails

Also fixes a resource leak when an upload_mgr is used for constants.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_texture.c