mesa: fix glGetInteger*(GL_SAMPLER_BINDING).
authorAlan Hourihane <alanh@vmware.com>
Wed, 6 Mar 2013 18:14:01 +0000 (18:14 +0000)
committerAlan Hourihane <alanh@vmware.com>
Thu, 7 Mar 2013 10:13:40 +0000 (10:13 +0000)
commit5984a911f9dda3f7421bdec604d30d0dfe2cea5e
treed37f550efb1a6e3b51321bd972b9c0f37ff9185e
parenteddf33f7112f569d119b677b0a41129350572198
mesa: fix glGetInteger*(GL_SAMPLER_BINDING).

If the sampler object has been deleted on another context, an
alternative context may reference the old sampler. So ensure the sampler
object still exists.

Note: this is a candidate for the stable branch.

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