WebGL createTexture respects config.pixelArt setting

This commit is contained in:
Richard Davey 2017-06-08 00:13:34 +01:00
parent ffb2bd5534
commit 2cc3a391c4

View file

@ -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;
}