mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
WebGL createTexture respects config.pixelArt setting
This commit is contained in:
parent
ffb2bd5534
commit
2cc3a391c4
1 changed files with 1 additions and 2 deletions
|
@ -133,12 +133,11 @@ WebGLRenderer.prototype = {
|
|||
|
||||
if (!source.glTexture)
|
||||
{
|
||||
|
||||
if (source.scaleMode === ScaleModes.LINEAR)
|
||||
{
|
||||
filter = gl.LINEAR;
|
||||
}
|
||||
else if (source.scaleMode === ScaleModes.NEAREST)
|
||||
else if (source.scaleMode === ScaleModes.NEAREST || this.game.config.pixelArt)
|
||||
{
|
||||
filter = gl.NEAREST;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue