summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2014-03-23 17:01:38 +0100
committerChristian König <[email protected]>2014-03-26 12:06:43 +0100
commitd117ddbe31fdbe79c871343358e2551593a1b18c (patch)
tree4faaedc8f9f2b69cd6dd183d1e3ded084339fd17 /src/mesa/state_tracker/st_texture.h
parent3b421daf32e5941801e0efb162037de4d8ca1f1d (diff)
st/mesa: fix sampler view handling with shared textures v4
Release the references to the sampler views before destroying the pipe context. v2: remove TODO and unrelated change v3: move to st_texture.[ch], rename callback, add comment v4: fix rebase mess up and add further cleanups Signed-off-by: Christian König <[email protected]> Reviewed-by: Brian Paul <[email protected]> Cc: "10.0 10.1" <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index bce2a0934e8..b4a27a00a9b 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -227,4 +227,8 @@ st_texture_image_copy(struct pipe_context *pipe,
extern struct pipe_resource *
st_create_color_map_texture(struct gl_context *ctx);
+extern void
+st_texture_release_sampler_view(struct st_context *st,
+ struct st_texture_object *stObj);
+
#endif