[Public WebGL] 8-bit (indexed) PNG files

Kenneth Russell [email protected]
Sat Apr 26 10:56:26 PDT 2014

Gregg, if it works in 2D canvas then yes, it's a bug in WebGL's
image-to-texture upload path. Not sure the spec needs to be modified since
it doesn't enumerate the browser's supported image formats.

Could you please file a bug? Also, would it be possible for you to send a
pull request for a WebGL conformance test?



On Sat, Apr 26, 2014 at 10:26 AM, Brandon Jones <[email protected]> wrote:

> I don't see anything about 8-bit images in the spec, so I would assume
> that it's either a bug or a spec clarification that needs to be made.
> On Fri, Apr 25, 2014 at 11:41 PM, Gregg Tavares <[email protected]>
> wrote:
>> I noticed an issue with indexed PNG files. Both Chrome and Firefox don't
>> seem to handle transparency for indexed PNG files in WebGL whereas they do
>> handle it for Canvas
>> It this a bug? Should I add a test?
>> http://jsfiddle.net/greggman/nhxRa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20140426/3e655ef4/attachment.html>

More information about the public_webgl mailing list