diff --git a/cogl/cogl-texture.c b/cogl/cogl-texture.c index bb8930a39..d75f6c124 100644 --- a/cogl/cogl-texture.c +++ b/cogl/cogl-texture.c @@ -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