cogl_read_pixels: Fix the format used in GLES2
authorNeil Roberts <neil@linux.intel.com>
Wed, 17 Nov 2010 17:45:27 +0000 (17:45 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 24 Nov 2010 15:56:35 +0000 (15:56 +0000)
commit08e1d7f57438fc563253906de735412329366b45
treea6cd823e8ecff10948b9108cbc6d1eae1ea74e90
parent2bd054f886a1ecd18837e6be9e48b379b8628754
cogl_read_pixels: Fix the format used in GLES2

When converting the data in cogl_read_pixels it was using bmp_format
instead of the format passed in to the function. bmp_format is the
same as the passed in format except that it always has the premult bit
set. Therefore the conversion would not handle premultiply correctly.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2414
clutter/cogl/cogl/cogl.c