mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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>
This commit is contained in:
parent
11532f79ec
commit
582bd409dd
@ -273,8 +273,11 @@ try_creating_fbo (CoglOffscreen *offscreen,
|
||||
)
|
||||
return FALSE;
|
||||
|
||||
/* We are about to generate and bind a new fbo, so when next flushing the
|
||||
* journal, we will need to rebind the current framebuffer... */
|
||||
/* We are about to generate and bind a new fbo, so we pretend to change framebuffer
|
||||
* state so that the old framebuffer will be rebound again before drawing.
|
||||
* The framebuffer state can't be changed while their are active entries, so flush
|
||||
* first. */
|
||||
_cogl_journal_flush ();
|
||||
ctx->dirty_bound_framebuffer = 1;
|
||||
|
||||
/* Generate framebuffer */
|
||||
|
Loading…
Reference in New Issue
Block a user