[Webkit-unassigned] [Bug 137793] Calling glReadPixels with BGRA format on an NVIDIA machine with an opaque context returns the wrong alpha values.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 17 11:31:54 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137793
--- Comment #7 from Dean Jackson <dino at apple.com> ---
Comment on attachment 240001
--> https://bugs.webkit.org/attachment.cgi?id=240001
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=240001&action=review
> Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:73
> + int totalBytes = width * height * 4;
> + for (int i = 0; i < totalBytes; i += 4)
> + std::swap(pixels[i], pixels[i + 2]);
I wonder if something like vImagePermuteChannels_ARGB8888 would do this faster.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141017/c1909e88/attachment-0002.html>
More information about the webkit-unassigned
mailing list