summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/samplerobj.h
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2013-03-06 18:14:01 +0000
committerAlan Hourihane <alanh@vmware.com>2013-03-07 10:13:40 +0000
commit5984a911f9dda3f7421bdec604d30d0dfe2cea5e (patch)
treed37f550efb1a6e3b51321bd972b9c0f37ff9185e /src/mesa/main/samplerobj.h
parenteddf33f7112f569d119b677b0a41129350572198 (diff)
downloadexternal_mesa3d-5984a911f9dda3f7421bdec604d30d0dfe2cea5e.zip
external_mesa3d-5984a911f9dda3f7421bdec604d30d0dfe2cea5e.tar.gz
external_mesa3d-5984a911f9dda3f7421bdec604d30d0dfe2cea5e.tar.bz2
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>
Diffstat (limited to 'src/mesa/main/samplerobj.h')
-rw-r--r--src/mesa/main/samplerobj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h
index 3114257..69e3899 100644
--- a/src/mesa/main/samplerobj.h
+++ b/src/mesa/main/samplerobj.h
@@ -62,6 +62,8 @@ _mesa_reference_sampler_object(struct gl_context *ctx,
_mesa_reference_sampler_object_(ctx, ptr, samp);
}
+extern struct gl_sampler_object *
+_mesa_lookup_samplerobj(struct gl_context *ctx, GLuint name);
extern struct gl_sampler_object *
_mesa_new_sampler_object(struct gl_context *ctx, GLuint name);