[Webkit-unassigned] [Bug 137793] New: Don't use BGRA format when reading rendering results
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 16 15:22:04 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137793
Bug ID: 137793
Summary: Don't use BGRA format when reading rendering results
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebGL
Assignee: webkit-unassigned at lists.webkit.org
Reporter: roger_fong at apple.com
When we call readPixels from the WebGLRenderingContext note that we spit out an error if GL_BGRA format is used.
However, we for some reason use this format when reading the rendering the results for the purposes of either reading the rendering results into an ImageData or a canvas.
This color format seems to fail specifically fail on NVIDIA cards and in particular the alpha channel can be read incorrectly when the alpha is off for the context. However, I will make a blanket change here for all devices and context attribute settings for alpha to be consistent with WebGLRenderingContext::readPixels which does the following:
switch (format) {
case GraphicsContext3D::ALPHA:
case GraphicsContext3D::RGB:
case GraphicsContext3D::RGBA:
break;
default:
synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "readPixels", "invalid format");
return;
}
--
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/20141016/8b3ffa26/attachment-0002.html>
More information about the webkit-unassigned
mailing list