Jump to content

RetroFont and WebGL bug (Firefox only?)


Recommended Posts



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


  • Recently Browsing   0 members

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