-
kbr@google.com authored
Reviewed by Chris Marrin. WebGL shows PNG Textures with indexed colors too dark https://bugs.webkit.org/show_bug.cgi?id=47477 Added test case for upload of indexed PNG images to gl-teximage.html in the Khronos WebGL conformance tests. Synchronized this test with the Khronos repository. * fast/canvas/webgl/gl-teximage-expected.txt: * fast/canvas/webgl/gl-teximage.html: * fast/canvas/webgl/resources/red-indexed.png: Added. 2011-01-28 Kenneth Russell <kbr@google.com> Reviewed by Chris Marrin. WebGL shows PNG Textures with indexed colors too dark https://bugs.webkit.org/show_bug.cgi?id=47477 Properly handle indexed PNG images by re-rendering them as RGBA images before upload. Verified with this layout test and the test cases from bugs 47477 and 53269. * platform/graphics/cg/GraphicsContext3DCG.cpp: (WebCore::GraphicsContext3D::getImageData): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
bb1c5656