mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Remove unnecessary checks around Text WebGL texture.
This commit is contained in:
parent
7ed40fdf7d
commit
719e7a5e73
1 changed files with 1 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue