st/mesa: reduce the scope of sampler_view in try_pbo_upload_common
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 3 Feb 2016 16:58:40 +0000 (17:58 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 5 Feb 2016 14:21:44 +0000 (09:21 -0500)
commitb27c79bd815c77a16e63d37631bd02d7df6f4f3c
treecbbb67aa7c87b0bf5b50a8e37a8645ac2eb18612
parent13e21e3ec58903a9974093423f9cef5e6edb668e
st/mesa: reduce the scope of sampler_view in try_pbo_upload_common

We can get rid of our reference immediately, since the driver will hold
onto it for us.

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