Testing webgl debug overlay.

This commit is contained in:
photonstorm
2014-03-02 20:51:44 +00:00
parent 442e6bb776
commit 418a161b46
4 changed files with 91 additions and 5 deletions
+2 -2
View File
@@ -152,7 +152,6 @@ Phaser.BitmapData.prototype = {
if (width !== this.width || height !== this.height)
{
console.log('bmd resize', width, height);
this.width = width;
this.height = height;
this.canvas.width = width;
@@ -367,7 +366,8 @@ Phaser.BitmapData.prototype = {
// Only needed if running in WebGL, otherwise this array will never get cleared down
if (this.game.renderType === Phaser.WEBGL)
{
PIXI.texturesToUpdate.push(this.baseTexture);
// should use the rendersession
PIXI.updateWebGLTexture(this.baseTexture, this.game.renderer.gl);
}
this._dirty = false;