@@ -610,7 +610,10 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
610610 */
611611 this.type = Phaser.BITMAPDATA;
612612
613- this._dirty = false;
613+ /**
614+ * @property {boolean} dirty - If dirty this BitmapData will be re-rendered.
615+ */
616+ this.dirty = false;
614617
615618}
616619
@@ -649,7 +652,7 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
649652
650653 this.context.clearRect(0, 0, this.width, this.height);
651654
652- this._dirty = true;
655+ this.dirty = true;
653656
654657 },
655658
@@ -670,7 +673,7 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
670673 this.imageData = this.context.getImageData(0, 0, width, height);
671674 }
672675
673- this._dirty = true;
676+ this.dirty = true;
674677
675678 },
676679
@@ -718,7 +721,7 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
718721
719722 this.context.putImageData(this.imageData, 0, 0);
720723
721- this._dirty = true;
724+ this.dirty = true;
722725 }
723726
724727 },
@@ -870,16 +873,13 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
870873 */
871874 render: function () {
872875
873- if (this._dirty )
876+ if (this.game.renderType === Phaser.WEBGL && this.dirty )
874877 {
875878 // Only needed if running in WebGL, otherwise this array will never get cleared down
876- if (this.game.renderType === Phaser.WEBGL)
877- {
878- // should use the rendersession
879- PIXI.updateWebGLTexture(this.baseTexture, this.game.renderer.gl);
880- }
879+ // should use the rendersession
880+ PIXI.updateWebGLTexture(this.baseTexture, this.game.renderer.gl);
881881
882- this._dirty = false;
882+ this.dirty = false;
883883 }
884884
885885 }
@@ -908,7 +908,7 @@ <h1 class="page-title">Source: gameobjects/BitmapData.js</h1>
908908
909909 < span class ="jsdoc-message ">
910910 Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.3.0-dev</ a >
911- on Fri Mar 14 2014 06:34:17 GMT-0000 (GMT) using the < a href ="https://github.com/terryweiss/docstrap "> DocStrap template</ a > .
911+ on Mon Mar 24 2014 12:38:38 GMT-0000 (GMT) using the < a href ="https://github.com/terryweiss/docstrap "> DocStrap template</ a > .
912912 </ span >
913913 </ footer >
914914 </ div >
0 commit comments