Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG with partially transparent pixels display incorrectly IE #27

Open
inssein opened this issue Jan 20, 2015 · 1 comment
Open

PNG with partially transparent pixels display incorrectly IE #27

inssein opened this issue Jan 20, 2015 · 1 comment

Comments

@inssein
Copy link

inssein commented Jan 20, 2015

I was having a tough time with a few cliparts of my own that had partially transparent pixels (only in IE).

After a lot of googling, I came across:

gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);

It seems to have done the trick. I was going to submit a PR, but wasn't sure where the best place to do it was. initialize() in the canvas.js file is probably a safe bet, and if you agree I can quickly send a PR.

@inssein inssein changed the title PNG with partially transparent pixels fails in IE PNG with partially transparent pixels has artifacts in IE Jan 20, 2015
@inssein inssein changed the title PNG with partially transparent pixels has artifacts in IE PNG with partially transparent pixels display incorrectly IE Jan 20, 2015
@inssein
Copy link
Author

inssein commented Jan 20, 2015

If I understand this correctly, this is what

premultipliedAlpha: false

is supposed to do, but is unsupported in IE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant