Jump to content

RetroFont and WebGL bug (Firefox only?)


morosenerd
 Share

Recommended Posts

Hey!

 

In CANVAS mode this code works fine:

this.scoreFont = this.add.retroFont('scoreFont', 45, 64, '0123456789', 10, 0, 0);this.scoreFont.text = '0';this.scoreDisplay = this.add.image(20, 20, this.scoreFont);

However, with WEBGL the third line throws an error:

Error: WebGL: texImage2D: null ImageData

that appears to come from this function:

gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, texture.source);

(from PIXI.WebGLRenderer.prototype.updateTexture). And the RetroFont doesn't show.

 

Curiously, this WORKS in Chrome, but doesn't work in Firefox 35.

 

Bug or am I doing something wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...