mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Remove texture deletion.
This commit is contained in:
parent
f285cf4854
commit
7722207dbd
1 changed files with 1 additions and 9 deletions
|
@ -232,15 +232,6 @@ var Text = new Class({
|
|||
// Set the resolution
|
||||
this.frame.source.resolution = this.style.resolution;
|
||||
|
||||
if (this.renderer && this.renderer.gl)
|
||||
{
|
||||
// Clear the default 1x1 glTexture, as we override it later
|
||||
|
||||
this.renderer.deleteTexture(this.frame.source.glTexture);
|
||||
|
||||
this.frame.source.glTexture = null;
|
||||
}
|
||||
|
||||
this.initRTL();
|
||||
|
||||
if (style && style.padding)
|
||||
|
@ -1157,6 +1148,7 @@ var Text = new Class({
|
|||
if (this.renderer.gl)
|
||||
{
|
||||
this.frame.source.glTexture = this.renderer.canvasToTexture(canvas, this.frame.source.glTexture);
|
||||
|
||||
this.frame.glTexture = this.frame.source.glTexture;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue