diff --git a/clutter/clutter/clutter-paint-nodes.c b/clutter/clutter/clutter-paint-nodes.c index 0f3a79213..af51f463c 100644 --- a/clutter/clutter/clutter-paint-nodes.c +++ b/clutter/clutter/clutter-paint-nodes.c @@ -1360,10 +1360,6 @@ clutter_layer_node_pre_draw (ClutterPaintNode *node, if (lnode->offscreen == NULL) return FALSE; - /* if no geometry was submitted for this node then we simply ignore it */ - if (node->operations == NULL) - return FALSE; - if (lnode->update_modelview) { CoglFramebuffer *framebuffer; @@ -1414,6 +1410,10 @@ clutter_layer_node_post_draw (ClutterPaintNode *node, cogl_framebuffer_pop_matrix (lnode->offscreen); clutter_paint_context_pop_framebuffer (paint_context); + /* if no geometry was submitted for this node then we simply ignore it */ + if (node->operations == NULL) + return; + fb = clutter_paint_context_get_framebuffer (paint_context); for (i = 0; i < node->operations->len; i++)