st/mesa: fix sampler view leak in st_DrawAtlasBitmaps()
authorBrian Paul <brianp@vmware.com>
Thu, 14 Apr 2016 21:07:53 +0000 (15:07 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 14 Apr 2016 21:32:18 +0000 (15:32 -0600)
commitaed975d5c510135c54252746b44d663d094ecb1e
tree91f142ed8de31503d342fa27494696d5017691a5
parenta17911ceb11fbf14b296095a9b5c506295b73d99
st/mesa: fix sampler view leak in st_DrawAtlasBitmaps()

I neglected to free the sampler view which was created earlier in the
function.  So for each glCallLists() command that used the bitmap atlas
to draw text, we'd leak a sampler view object.

Also, check for st_create_texture_sampler_view() failure and record
GL_OUT_OF_MEMORY.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_cb_bitmap.c