summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shared.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-31 18:23:03 -0700
committerBrian Paul <[email protected]>2012-02-01 07:11:40 -0700
commit361cd53a77dd48fbf2a0321446c0b7c07365bff9 (patch)
tree82d1936b9c52b28889a2d4d750269fc3db0b220d /src/mesa/main/shared.h
parent133c5727b58c60afe6467ecbfe07739c7466d8c8 (diff)
mesa: use new _mesa_reference_shared_state() function
This cleans up the reference counting of shared context state. The next patch will use this to fix an actual bug. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/shared.h')
-rw-r--r--src/mesa/main/shared.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/shared.h b/src/mesa/main/shared.h
index 55516a8c37c..3fe4578cf31 100644
--- a/src/mesa/main/shared.h
+++ b/src/mesa/main/shared.h
@@ -27,13 +27,14 @@
struct gl_context;
-struct gl_shared_state *
-_mesa_alloc_shared_state(struct gl_context *ctx);
+void
+_mesa_reference_shared_state(struct gl_context *ctx,
+ struct gl_shared_state **ptr,
+ struct gl_shared_state *state);
-void
-_mesa_release_shared_state(struct gl_context *ctx,
- struct gl_shared_state *shared);
+struct gl_shared_state *
+_mesa_alloc_shared_state(struct gl_context *ctx);
#endif