
Instead of using cogl_read_pixels(), which is deprecated and uses the implicit framebuffer, pass the current CoglFramebuffer and use cogl_framebuffer_read_pixels().
Instead of using cogl_read_pixels(), which is deprecated and uses the implicit framebuffer, pass the current CoglFramebuffer and use cogl_framebuffer_read_pixels().