summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-05 08:41:45 -0700
committerBrian <[email protected]>2007-11-05 08:41:45 -0700
commit44dfed15e0c5113d42d781e3937a2f619284454a (patch)
tree6e6eccb8b2b0838ec0fe282d6c54efd4bcac6d99
parentfc73b216065325fc4ce2c500be5a5fa2072db0b3 (diff)
added st_unreference_framebuffer()
-rw-r--r--src/mesa/state_tracker/st_framebuffer.c7
-rw-r--r--src/mesa/state_tracker/st_public.h4
2 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c
index f454499fd85..54ae175e60e 100644
--- a/src/mesa/state_tracker/st_framebuffer.c
+++ b/src/mesa/state_tracker/st_framebuffer.c
@@ -105,3 +105,10 @@ void st_resize_framebuffer( struct st_framebuffer *stfb,
}
}
+
+void st_unreference_framebuffer( struct st_framebuffer **stfb )
+{
+ _mesa_unreference_framebuffer((struct gl_framebuffer **) stfb);
+}
+
+
diff --git a/src/mesa/state_tracker/st_public.h b/src/mesa/state_tracker/st_public.h
index 74a94d1abc6..abdfcca80f1 100644
--- a/src/mesa/state_tracker/st_public.h
+++ b/src/mesa/state_tracker/st_public.h
@@ -48,9 +48,11 @@ void st_destroy_context2( struct st_context *st );
struct st_framebuffer *st_create_framebuffer( const __GLcontextModes *visual );
-void st_resize_framebuffer( struct st_framebuffer *,
+void st_resize_framebuffer( struct st_framebuffer *stfb,
GLuint width, GLuint height );
+void st_unreference_framebuffer( struct st_framebuffer **stfb );
+
void st_make_current(struct st_context *st,
struct st_framebuffer *draw,
struct st_framebuffer *read);