st/mesa: Unreference the sampler view in st_bind_surface.
authorChia-I Wu <olv@lunarg.com>
Sat, 30 Oct 2010 17:13:27 +0000 (01:13 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 30 Oct 2010 17:18:59 +0000 (01:18 +0800)
commitcfc81d93f7b07a89437cbbce173fc468070e06da
tree24a737ac02984cd3ef2c2a1acf560adbb052b524
parent9c2b4814d0b7dc67777099ea249c09bcf9ee46eb
st/mesa: Unreference the sampler view in st_bind_surface.

Without this, update_textures may not pick up the new pipe_resource.

It is actually update_textures that should check
stObj->sampler_view->texture != stObj->pt, but let's follow st_TexImage
and others for now.
src/mesa/state_tracker/st_cb_eglimage.c