mesa: Unbind deleted textures from the shader image units.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 23 Nov 2013 03:54:47 +0000 (19:54 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 15 Jan 2014 15:42:08 +0000 (16:42 +0100)
commitace31f4bc05ad35ef42626ecd667a4bbbe044ddc
tree1aa0596491391d596ccb67dd0dd554e5f35eae89
parent902f9df36bec7d67a2d8bc4c24d89d9d57964903
mesa: Unbind deleted textures from the shader image units.

From ARB_shader_image_load_store:

   If a texture object bound to one or more image units is deleted by
   DeleteTextures, it is detached from each such image unit, as though
   BindImageTexture were called with <unit> identifying the image unit
   and <texture> set to zero.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/texobj.c