mirror of
https://github.com/photonstorm/phaser
synced 2024-12-03 18:10:10 +00:00
Added guard around the blend mode setter.
This commit is contained in:
parent
cbf9b3f71f
commit
84a566bf79
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,11 @@ PIXI.WebGLBlendModeManager.prototype.setBlendMode = function(blendMode)
|
|||
this.currentBlendMode = blendMode;
|
||||
|
||||
var blendModeWebGL = PIXI.blendModesWebGL[this.currentBlendMode];
|
||||
this.gl.blendFunc(blendModeWebGL[0], blendModeWebGL[1]);
|
||||
|
||||
if (blendModeWebGL)
|
||||
{
|
||||
this.gl.blendFunc(blendModeWebGL[0], blendModeWebGL[1]);
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue