Use cogl_read_pixels in the cogl texture draw-and-read fallback
authorNeil Roberts <neil@linux.intel.com>
Thu, 8 Jul 2010 17:29:12 +0000 (18:29 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 9 Jul 2010 10:14:15 +0000 (11:14 +0100)
commit25cf5979e63e093397bad042e3953da7455d0491
tree0b365f94c5478c3bbc6d136acfd486bca83c102c
parente454b9cadfd8393f65ad38030c5fe98a69be2904
Use cogl_read_pixels in the cogl texture draw-and-read fallback

The fallback for when glGetTexImage is not available draws parts of
the texture to the framebuffer and uses glReadPixels to extract the
data. However it was using cogl_rectangle to draw and then immediately
using raw glReadPixels to fetch the data. This won't cause a journal
flush so the rectangle won't necessarily have hit the framebuffer
yet. Instead it now uses cogl_read_pixels which does flush the
journal.
clutter/cogl/cogl/cogl-texture.c