mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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.
This commit is contained in:
parent
c14bd84eef
commit
bf1997c4ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user