summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/renderbuffer.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-05-20 15:07:32 +0000
committerBrian Paul <[email protected]>2006-05-20 15:07:32 +0000
commitb52f02121bdfc68fbbba732f3d107c296f03d885 (patch)
tree0f0055dca4e77f14b47dccb8ae4ad1424c035dac /src/mesa/main/renderbuffer.h
parent2eb88c1752f3c2f2f858415a89fdfc96e6669fc8 (diff)
Added _mesa_remove_renderbuffer() as a counterpart to _mesa_add_renderbuffer().
Added _mesa_dereference_renderbuffer() to encapsulate renderbuffer reference count decrement, delete, locking.
Diffstat (limited to 'src/mesa/main/renderbuffer.h')
-rw-r--r--src/mesa/main/renderbuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/renderbuffer.h b/src/mesa/main/renderbuffer.h
index d8358e213cb..74ca43c57ab 100644
--- a/src/mesa/main/renderbuffer.h
+++ b/src/mesa/main/renderbuffer.h
@@ -95,6 +95,11 @@ extern void
_mesa_add_renderbuffer(struct gl_framebuffer *fb,
GLuint bufferName, struct gl_renderbuffer *rb);
+extern void
+_mesa_remove_renderbuffer(struct gl_framebuffer *fb, GLuint bufferName);
+
+extern void
+_mesa_dereference_renderbuffer(struct gl_renderbuffer **rb);
extern struct gl_renderbuffer *
_mesa_new_depthstencil_renderbuffer(GLcontext *ctx, GLuint name);