Unreference sampler object when it's currently bound to texture unit.
authorAlan Hourihane <alanh@vmware.com>
Wed, 6 Mar 2013 16:08:58 +0000 (16:08 +0000)
committerAlan Hourihane <alanh@vmware.com>
Wed, 6 Mar 2013 18:10:12 +0000 (18:10 +0000)
commitcf0b4a30fc536f3744bce209d4b356fe82f2e6a3
tree14b0e725f135059428420ea4f21c75bc1a17f74d
parentb21f8e364b997c31ad0b3f97b18c7d87a35642eb
Unreference sampler object when it's currently bound to texture unit.

This change specifically unbinds a sampler object from the texture unit
if it's bound to a unit. The spec calls for default object when deleting
sampler objects which are currently bound.

Note: this is a candidate for the stable branches

Signed-off-by: Alan Hourihane <alanh@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/samplerobj.c