File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -455,10 +455,7 @@ Phaser.Image.prototype.updateCrop = function() {
455455 this . texture . width = this . texture . frame . width ;
456456 this . texture . height = this . texture . frame . height ;
457457
458- if ( this . game . renderType === Phaser . WEBGL )
459- {
460- PIXI . WebGLRenderer . updateTextureFrame ( this . texture ) ;
461- }
458+ this . texture . _updateUvs ( ) ;
462459
463460} ;
464461
Original file line number Diff line number Diff line change @@ -393,10 +393,7 @@ Phaser.Rope.prototype.setFrame = function(frame) {
393393 this . texture . trim = null ;
394394 }
395395
396- if ( this . game . renderType === Phaser . WEBGL )
397- {
398- PIXI . WebGLRenderer . updateTextureFrame ( this . texture ) ;
399- }
396+ this . texture . _updateUvs ( ) ;
400397
401398} ;
402399
Original file line number Diff line number Diff line change @@ -574,10 +574,7 @@ Phaser.Sprite.prototype.updateCrop = function() {
574574 this . texture . width = this . texture . frame . width ;
575575 this . texture . height = this . texture . frame . height ;
576576
577- if ( this . game . renderType === Phaser . WEBGL )
578- {
579- PIXI . WebGLRenderer . updateTextureFrame ( this . texture ) ;
580- }
577+ this . texture . _updateUvs ( ) ;
581578
582579} ;
583580
Original file line number Diff line number Diff line change @@ -613,11 +613,7 @@ Phaser.TilemapLayer.prototype.render = function () {
613613 this . renderDebug ( ) ;
614614 }
615615
616- if ( this . game . renderType === Phaser . WEBGL )
617- {
618- // PIXI.updateWebGLTexture(this.baseTexture, renderSession.gl);
619- PIXI . updateWebGLTexture ( this . baseTexture , this . game . renderer . gl ) ;
620- }
616+ this . texture . _updateUvs ( ) ;
621617
622618 this . dirty = false ;
623619 this . layer . dirty = false ;
You can’t perform that action at this time.
0 commit comments