@@ -562,14 +562,12 @@ Phaser.Tilemap.prototype = {
562562 * @param {number } [width] - The rendered width of the layer, should never be wider than Game.width. If not given it will be set to Game.width.
563563 * @param {number } [height] - The rendered height of the layer, should never be wider than Game.height. If not given it will be set to Game.height.
564564 * @param {Phaser.Group } [group] - Optional Group to add the object to. If not specified it will be added to the World group.
565- * @param {boolean } [pixiTest] - Temporary additional flag to enable tests of the PIXI.Tilemap renderer
566565 * @return {Phaser.TilemapLayer } The TilemapLayer object. This is an extension of Phaser.Sprite and can be moved around the display list accordingly.
567566 */
568- createLayer : function ( layer , width , height , group , pixiTest ) {
567+ createLayer : function ( layer , width , height , group ) {
569568
570569 // Add Buffer support for the left of the canvas
571570
572- if ( pixiTest === undefined ) { pixiTest = true ; } // TODO: disable test of TilemapLayerGL unless requested
573571 if ( width === undefined ) { width = this . game . width ; }
574572 if ( height === undefined ) { height = this . game . height ; }
575573 if ( group === undefined ) { group = this . game . world ; }
@@ -587,7 +585,7 @@ Phaser.Tilemap.prototype = {
587585 return ;
588586 }
589587
590- if ( pixiTest )
588+ if ( this . game . renderType === Phaser . WEBGL )
591589 {
592590 // use WebGL variant of TilemapLayer when pixiTest is true
593591 return group . add ( new Phaser . TilemapLayerGL ( this . game , this , index , width , height ) ) ;
0 commit comments