mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
The TextureSource.setFilter
method will now check to see if renderer
is defined before accessing its gl
property. This avoids Phaser crashing if you're in headless mode and set anti-aliasing to false in the game config. Fix #6663
This commit is contained in:
parent
843c1454af
commit
6f801eeac7
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ var TextureSource = new Class({
|
||||||
*/
|
*/
|
||||||
setFilter: function (filterMode)
|
setFilter: function (filterMode)
|
||||||
{
|
{
|
||||||
if (this.renderer.gl)
|
if (this.renderer && this.renderer.gl)
|
||||||
{
|
{
|
||||||
this.renderer.setTextureFilter(this.glTexture, filterMode);
|
this.renderer.setTextureFilter(this.glTexture, filterMode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue