Remove unnecessary checks around Text WebGL texture.

This commit is contained in:
Ben Richards 2024-02-07 11:50:33 +13:00
parent 7ed40fdf7d
commit 719e7a5e73

View file

@ -1431,14 +1431,7 @@ var Text = new Class({
if (this.renderer && this.renderer.gl)
{
if (this.frame.source.glTexture)
{
this.frame.source.glTexture.update(canvas, canvas.width, canvas.height, false);
}
else
{
this.frame.source.glTexture = this.renderer.canvasToTexture(canvas, this.frame.source.glTexture, true);
}
this.frame.source.glTexture = this.renderer.canvasToTexture(canvas, this.frame.source.glTexture, true);
if (typeof WEBGL_DEBUG)
{