cogl-framebuffer: Flush journal when creating fbo
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 8 May 2010 20:58:14 +0000 (16:58 -0400)
committerRobert Bragg <robert@linux.intel.com>
Mon, 10 May 2010 13:38:10 +0000 (14:38 +0100)
commitaf37a1029ff86d082b55cebef6f59d227ab22da8
tree014f7b1ec06ba3cfeda8eb11ce4eee5c1570ed96
parentb3de036c97c8b527e1993dd8788bdfa6581888ee
cogl-framebuffer: Flush journal when creating fbo

Since framebuffer state is not flushed prior to replaying the journal,
the trick of marking the framebuffer dirty prior to calling
glBindFramebuffer() doesn't work... the outstanding journal entries
will get replayed to the newly created framebuffer.

Fix this by flushing the journal as well.

http://bugzilla.openedhand.com/show_bug.cgi?id=2110

Signed-off-by: Robert Bragg <robert@linux.intel.com>
clutter/cogl/cogl/cogl-framebuffer.c