mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Merge pull request #5004 from samme/fix/4976-headless-text
Fix updateText() error for headless renderer
This commit is contained in:
commit
f92b649d85
1 changed files with 1 additions and 1 deletions
|
@ -1273,7 +1273,7 @@ var Text = new Class({
|
|||
|
||||
context.restore();
|
||||
|
||||
if (this.renderer.gl)
|
||||
if (this.renderer && this.renderer.gl)
|
||||
{
|
||||
this.frame.source.glTexture = this.renderer.canvasToTexture(canvas, this.frame.source.glTexture, true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue