[clutter/clutter-1.16] paint-nodes: Have a fallback buffer for the root node
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.16] paint-nodes: Have a fallback buffer for the root node
- Date: Mon, 19 Aug 2013 23:23:30 +0000 (UTC)
commit bf1997c4ef83c658c3566574e8bdf01dd9120957
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Aug 20 00:01:45 2013 +0100
paint-nodes: Have a fallback buffer for the root node
If we don't get passed a CoglFramebuffer when creating the root paint
node then we ask Cogl to give us the current draw buffer.
This allows the text-cache conformance test to pass, but it'll require
further investigation.
clutter/clutter-paint-nodes.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-paint-nodes.c b/clutter/clutter-paint-nodes.c
index 91bc91b..2b95d41 100644
--- a/clutter/clutter-paint-nodes.c
+++ b/clutter/clutter-paint-nodes.c
@@ -166,7 +166,11 @@ _clutter_root_node_new (CoglFramebuffer *framebuffer,
clear_color->alpha);
cogl_color_premultiply (&res->clear_color);
- res->framebuffer = cogl_object_ref (framebuffer);
+ if (G_LIKELY (framebuffer != NULL))
+ res->framebuffer = cogl_object_ref (framebuffer);
+ else
+ res->framebuffer = cogl_object_ref (cogl_get_draw_framebuffer ());
+
res->clear_flags = clear_flags;
return (ClutterPaintNode *) res;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]