[main] Use cogl_read_pixels not glReadPixels in clutter-main.c
authorRobert Bragg <robert@linux.intel.com>
Fri, 30 Oct 2009 23:54:13 +0000 (23:54 +0000)
committerRobert Bragg <robert@linux.intel.com>
Wed, 4 Nov 2009 03:34:03 +0000 (03:34 +0000)
commitb2ebb7db485d0a58bcb642fe9e4584c85ac9a503
treee5cd6c677ee574dc767efce3ec957a01c1804a12
parent40b8399d49f6b0383b9eebcdf1ca501b5edb4f39
[main] Use cogl_read_pixels not glReadPixels in clutter-main.c

The debugging function read_pixels_to_file() and _clutter_do_pick were both
directly calling glReadPixels, but we don't wan't Clutter making direct
OpenGL calls and Cogl provides a suitable alternative.  It also means
read_pixels_to_file() doesn't need to manually flip the data read due to
differences in Clutter/Cogl coordinate systems.
clutter/clutter-main.c