Merge pull request #5004 from samme/fix/4976-headless-text

Fix updateText() error for headless renderer
This commit is contained in:
Richard Davey 2020-04-27 12:36:01 +01:00 committed by GitHub
commit f92b649d85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);