[clutter/clutter-1.18] text: Add a hacky fallback for the framebuffer



commit e619de20d83cbd072125e52247fbbaf4841dea41
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Dec 3 13:01:52 2013 +0000

    text: Add a hacky fallback for the framebuffer
    
    The text-cache conformance test breaks because ClutterText gets a paint
    without an active framebuffer associated to the ClutterStage. Keep a
    fallback while we investigate the issue.

 clutter/clutter-text.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index 40e4fa6..ea0ad4d 100644
--- a/clutter/clutter-text.c
+++ b/clutter/clutter-text.c
@@ -2222,7 +2222,13 @@ clutter_text_paint (ClutterActor *self)
   float alloc_width;
   float alloc_height;
 
+  /* FIXME: this should not be needed, but apparently the text-cache
+   * test unit manages to get in a situation where the active frame
+   * buffer is NULL
+   */
   fb = _clutter_actor_get_active_framebuffer (self);
+  if (fb == NULL)
+    fb = cogl_get_draw_framebuffer ();
 
   /* Note that if anything in this paint method changes it needs to be
      reflected in the get_paint_volume implementation which is tightly


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