atlas: fix some journal flushing issues
authorRobert Bragg <robert@linux.intel.com>
Fri, 4 Jun 2010 15:42:30 +0000 (16:42 +0100)
committerRobert Bragg <robert@linux.intel.com>
Wed, 9 Jun 2010 14:19:31 +0000 (15:19 +0100)
commit413e631f488da0ec5ab44ac8d2314a89ff4a48a2
tree3f3c938bacfdde75ca06dd60f467a0f15f797e2a
parentd407bb520fe886742ace030d12a9d647b640069b
atlas: fix some journal flushing issues

1) Always flush when migrating textures out of an atlas because although
it's true that the original texture data will remain valid in the
original texture we can't assume that journal entries have resolved the
GL texture that will be used. This is only true if a layer0_override has
been used.

2) Don't flush at the point of creating a new atlas simply flush
immediately before reorganizing an atlas. This means we are now assuming
that we will never see recursion due to atlas textures being modified
during a journal flush. This means it's the responsibility of the
primitives code to _ensure_mipmaps for example not the responsibility of
_cogl_material_flush_gl_state.
clutter/cogl/cogl/cogl-atlas-texture.c