picking: Read the colour value using COGL_PIXEL_FORMAT_RGBA_8888_PRE
authorNeil Roberts <neil@linux.intel.com>
Fri, 26 Mar 2010 23:09:11 +0000 (23:09 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 21 Apr 2010 10:34:04 +0000 (11:34 +0100)
commit78dc59b34859686c89e9b96dc0fc78f453031262
tree538d9711fe5c1e3d829d640a7f2e8e666921953b
parent0cb09cd40d6b031a5514038af73a13d4e7bf2f82
picking: Read the colour value using COGL_PIXEL_FORMAT_RGBA_8888_PRE

In commit c0a553163b I changed the format used to read the picking
pixel to COGL_PIXEL_FORMAT_RGB_888 because it was convenient to avoid
the premult conversion. However this broke picking on GLES on some
platforms because for that glReadPixels is only guaranteed to support
GL_RGBA with GL_UNSIGNED_BYTE. Since the last commit cogl_read_pixels
will always use that format but it will end up with a conversion back
to RGB_888. This patch avoids that conversion and avoids the premult
conversion by reading in RGBA_8888_PRE.

http://bugzilla.openedhand.com/show_bug.cgi?id=2057
clutter/clutter-main.c