mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Fixed data and alpha value
This commit is contained in:
parent
fd1ab765a3
commit
acc9f07e5c
1 changed files with 2 additions and 2 deletions
|
@ -697,7 +697,7 @@ var SpriteFXPipeline = new Class({
|
|||
if (shader === undefined) { shader = this.copyShader; }
|
||||
|
||||
var gl = this.gl;
|
||||
var sprite = this.data.sprite;
|
||||
var sprite = this.spriteData.sprite;
|
||||
|
||||
this.currentShader = shader;
|
||||
|
||||
|
@ -734,7 +734,7 @@ var SpriteFXPipeline = new Class({
|
|||
|
||||
if (clear)
|
||||
{
|
||||
gl.clearColor(0, 0, 0, !!clearAlpha);
|
||||
gl.clearColor(0, 0, 0, Number(!clearAlpha));
|
||||
|
||||
gl.clear(gl.COLOR_BUFFER_BIT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue