mirror of
https://github.com/brl/mutter.git
synced 2025-01-22 09:29:25 +00:00
texture: Flush the dependent journals on get_data
When calling cogl_texture_get_data we need to ensure that any framebuffers rendering to the texture have flushed their journals. https://bugzilla.gnome.org/show_bug.cgi?id=668913 Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
f4a42fe988
commit
43bc0a4b0d
@ -1243,6 +1243,11 @@ cogl_texture_get_data (CoglTexture *texture,
|
||||
}
|
||||
tg_data.success = TRUE;
|
||||
|
||||
/* If there are any dependent framebuffers on the texture then we
|
||||
need to flush their journals so the texture contents will be
|
||||
up-to-date */
|
||||
_cogl_texture_flush_journal_rendering (texture);
|
||||
|
||||
/* Iterating through the subtextures allows piecing together
|
||||
* the data for a sliced texture, and allows us to do the
|
||||
* read-from-framebuffer logic here in a simple fashion rather than
|
||||
|
Loading…
x
Reference in New Issue
Block a user