diff --git a/cogl/cogl-attribute.c b/cogl/cogl-attribute.c index 8b7f3d552..b0ac790e1 100644 --- a/cogl/cogl-attribute.c +++ b/cogl/cogl-attribute.c @@ -636,7 +636,7 @@ _cogl_flush_attributes_state (CoglFramebuffer *framebuffer, * pixel and the scene is just comprised of simple rectangles still * in the journal. For this optimization to work we need to track * when the framebuffer really does get drawn to. */ - _cogl_framebuffer_dirty (framebuffer); + _cogl_framebuffer_mark_mid_scene (framebuffer); if (G_UNLIKELY (!(flags & COGL_DRAW_SKIP_LEGACY_STATE)) && G_UNLIKELY (ctx->legacy_state_set) && diff --git a/cogl/cogl-framebuffer-private.h b/cogl/cogl-framebuffer-private.h index 267dbf611..21f0d241a 100644 --- a/cogl/cogl-framebuffer-private.h +++ b/cogl/cogl-framebuffer-private.h @@ -233,7 +233,7 @@ _cogl_framebuffer_clear_without_flush4f (CoglFramebuffer *framebuffer, float alpha); void -_cogl_framebuffer_dirty (CoglFramebuffer *framebuffer); +_cogl_framebuffer_mark_mid_scene (CoglFramebuffer *framebuffer); CoglClipState * _cogl_framebuffer_get_clip_state (CoglFramebuffer *framebuffer); diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c index 4fc8e330a..740154a89 100644 --- a/cogl/cogl-framebuffer.c +++ b/cogl/cogl-framebuffer.c @@ -233,7 +233,7 @@ _cogl_framebuffer_clear_without_flush4f (CoglFramebuffer *framebuffer, } void -_cogl_framebuffer_dirty (CoglFramebuffer *framebuffer) +_cogl_framebuffer_mark_mid_scene (CoglFramebuffer *framebuffer) { framebuffer->clear_clip_dirty = TRUE; } @@ -426,7 +426,7 @@ cleared: } } else - _cogl_framebuffer_dirty (framebuffer); + _cogl_framebuffer_mark_mid_scene (framebuffer); } /* Note: the 'buffers' and 'color' arguments were switched around on