phaser: Frequently getting WebGL error in Firefox with Phaser 2.4.8, parts of game don't show

(Hi @photonstorm, great fan of your framework here, can’t wait for Lazer!)

This Issue is about:

  • A bug in the API

Getting the following error only in Firefox, only since 2.4.8:

Error: WebGL: texImage2D: Failed to get data from DOM element. Implicit width and height for this upload will be zero. phaser.js:7:27510
Error: WebGL: drawElements: Active texture 0 for target 0x0de1 is 'incomplete', and will be rendered as RGBA(0,0,0,1), as per the GLES 2.0.24 $3.8.2: The dimensions of `level_base` are not all positive. phaser.js:8:9503

Happens frequently, but not always. Switching Phaser version to 2.4.7 fixes the issue.

Game is using textures of maximum size 4096x4096.

Would be difficult for me to create a simplified sample with reproducible bug, but I can try if you need it. Any help would be great, this is for a product shipping in a matter of days, and we really want to use 2.4.8 .

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

You can also try a git bisect to try and isolate it. 😃 On Jun 5, 2016 6:27 PM, “Richard Davey” notifications@github.com wrote:

Look at the 2.4.8 change log for yourself: https://github.com/photonstorm/phaser#change-log there’s literally nothing Loader / Renderer related in it (except some sprite tint fixes).

Try it with 2.4.9 instead and see what happens. Failing that, if 2.4.7 works, stick with it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/photonstorm/phaser/issues/2534#issuecomment-223841642, or mute the thread https://github.com/notifications/unsubscribe/ABB3p7Vo2tmxns7UZu6K3AxLuFoDBr-Eks5qI01BgaJpZM4IuTE4 .