[clutter/wip/cogl-winsys-egl: 15/37] glx: correctly report active stage framebuffer



commit 746bae6da7ff41731f1691596e48341f39d0d97a
Author: Robert Bragg <robert linux intel com>
Date:   Thu Mar 10 23:50:25 2011 +0000

    glx: correctly report active stage framebuffer

 clutter/glx/clutter-stage-glx.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter/glx/clutter-stage-glx.c b/clutter/glx/clutter-stage-glx.c
index 17f5bcd..2c655b3 100644
--- a/clutter/glx/clutter-stage-glx.c
+++ b/clutter/glx/clutter-stage-glx.c
@@ -508,6 +508,14 @@ clutter_stage_glx_redraw (ClutterStageWindow *stage_window)
   stage_glx->frame_count++;
 }
 
+static CoglFramebuffer *
+clutter_stage_glx_get_active_framebuffer (ClutterStageWindow *stage_window)
+{
+  ClutterStageGLX *stage_glx = CLUTTER_STAGE_GLX (stage_window);
+
+  return COGL_FRAMEBUFFER (stage_glx->onscreen);
+}
+
 static void
 clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
 {
@@ -521,6 +529,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
   iface->has_redraw_clips = clutter_stage_glx_has_redraw_clips;
   iface->ignoring_redraw_clips = clutter_stage_glx_ignoring_redraw_clips;
   iface->redraw = clutter_stage_glx_redraw;
+  iface->get_active_framebuffer = clutter_stage_glx_get_active_framebuffer;
 
   /* the rest is inherited from ClutterStageX11 */
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]