diff --git a/clutter/cogl/cogl/cogl-atlas-texture.c b/clutter/cogl/cogl/cogl-atlas-texture.c index 627026936..b15a85c86 100644 --- a/clutter/cogl/cogl/cogl-atlas-texture.c +++ b/clutter/cogl/cogl/cogl-atlas-texture.c @@ -670,8 +670,6 @@ _cogl_atlas_texture_migrate (unsigned int n_textures, unsigned int i; CoglAtlasTextureBlitData blit_data; - _cogl_atlas_texture_blit_begin (&blit_data, new_texture, old_texture); - /* We don't know if any materials may currently be referenced in the * journal that depend on the current underlying GL texture storage * so we flush the journal before migrating. @@ -681,6 +679,8 @@ _cogl_atlas_texture_migrate (unsigned int n_textures, */ _cogl_journal_flush (); + _cogl_atlas_texture_blit_begin (&blit_data, new_texture, old_texture); + for (i = 0; i < n_textures; i++) { /* Skip the texture that is being added because it doesn't contain