aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_framebuffer.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-03 10:19:10 -0600
committerBrian <[email protected]>2007-11-05 08:04:48 -0700
commit3d14b2c01e12823877ae9270c7a79da65681f25c (patch)
tree1b218775760625b0828279d9768504bf2324b760 /src/mesa/state_tracker/st_framebuffer.c
parentecb41279d6c9f7fd0b2dc44309fd71fad5db33a9 (diff)
added st_resize_framebuffer()
Diffstat (limited to 'src/mesa/state_tracker/st_framebuffer.c')
-rw-r--r--src/mesa/state_tracker/st_framebuffer.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c
index 18669712c2f..99638c5d5ff 100644
--- a/src/mesa/state_tracker/st_framebuffer.c
+++ b/src/mesa/state_tracker/st_framebuffer.c
@@ -88,3 +88,17 @@ struct st_framebuffer *st_create_framebuffer( const __GLcontextModes *visual )
}
+void st_resize_framebuffer( struct st_framebuffer *stfb,
+ GLuint width, GLuint height )
+{
+ if (stfb->Base.Width != width || stfb->Base.Height != height) {
+ GET_CURRENT_CONTEXT(ctx);
+ if (ctx) {
+ _mesa_resize_framebuffer(ctx, &stfb->Base, width, height);
+
+ assert(stfb->Base.Width == width);
+ assert(stfb->Base.Height == height);
+ }
+ }
+}
+