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

"Render Texture Starfield" fails in IE 11 under WebGL #1381

Closed
pnstickne opened this issue Nov 29, 2014 · 2 comments
Closed

"Render Texture Starfield" fails in IE 11 under WebGL #1381

pnstickne opened this issue Nov 29, 2014 · 2 comments

Comments

@pnstickne
Copy link
Contributor

Demo on dev: http://examples.phaser.io/_site/view_full.html?d=display&f=render%20texture%20starfield.js&t=render%20texture%20starfield&phaser_version=dev&

There is a TypeMismatchError from gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, texture.source); in PIXI.WebGLRenderer.prototype.updateTexture.

This problem does not occur in CANVAS mode.

@photonstorm
Copy link
Collaborator

This bug is specific to the version of IE11 being used. In short it means you're using an older version of IE11 that doesn't support UNSIGNED_BYTE. This is fixed in the current public release of IE11.

There's no (known) clean way to detect this automatically, and it won't be done by Pixi either (pixijs/pixijs#1383) so I'm reluctantly closing this off.

@photonstorm
Copy link
Collaborator

Actually the above isn't correct. But I've since fixed it, so all is right in the world of IE again.

photonstorm added a commit that referenced this issue Feb 10, 2015
…xture` if the texture given is a RenderTexture. This fixes issues with RetroFonts in IE11 WebGL as well as other RenderTexture related IE11 problems (#1310 #1381 #1523)
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

2 participants