mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
TileSprite was missing a gl reference, causing it to fail during a context loss and restore.
This commit is contained in:
parent
d23688c3e4
commit
5b4b5de075
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ var TileSprite = new Class({
|
||||||
|
|
||||||
scene.sys.game.renderer.onContextRestored(function (renderer)
|
scene.sys.game.renderer.onContextRestored(function (renderer)
|
||||||
{
|
{
|
||||||
|
var gl = renderer.gl;
|
||||||
this.tileTexture = null;
|
this.tileTexture = null;
|
||||||
this.dirty = true;
|
this.dirty = true;
|
||||||
this.tileTexture = renderer.createTexture2D(0, gl.LINEAR, gl.LINEAR, gl.REPEAT, gl.REPEAT, gl.RGBA, this.canvasBuffer, this.potWidth, this.potHeight);
|
this.tileTexture = renderer.createTexture2D(0, gl.LINEAR, gl.LINEAR, gl.REPEAT, gl.REPEAT, gl.RGBA, this.canvasBuffer, this.potWidth, this.potHeight);
|
||||||
|
|
Loading…
Reference in a new issue