Carlos Garnacho 44a7f74dcd cogl: Read pixels as per the stored format
By the looks of it, commit 95e9fa10ef was taping over an Intel DRI bug
that would make it return post-swizzling pixel data on glReadPixels().
There's been reports over time of that commit resulting in wrong colors
on other drivers, and lately Mesa >17.3 started showing the same symptoms
on Intel.

But texture swizzling works by changing parameters before fragment shaders
and reading pixels from an already drawn FBO/texture doesn't involve those.
This should thus use pixel_format_to_gl_with_target(), which will result in
correctly requesting the same pixel format than the underlying texture,
while still considering it BGRA for the upper layers in the swizzling case.

https://gitlab.gnome.org/GNOME/mutter/issues/72

Closes: #72
2018-03-21 20:37:34 +01:00
2015-07-06 00:52:18 -07:00
2018-03-20 22:39:36 +01:00
2014-03-18 20:37:35 -04:00
2017-05-11 13:45:44 +02:00
2018-03-12 19:45:19 +01:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2018-03-12 19:45:19 +01:00
Description
94 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%