Config.pixelArt setting applied to CanvasPool.

This commit is contained in:
photonstorm 2017-06-08 15:05:07 +01:00
parent a836c894e6
commit cf74a7dd81

View file

@ -41,6 +41,12 @@ var CreateRenderer = function (game)
config.renderType = CONST.WEBGL;
}
// Pixel Art mode?
if (config.pixelArt)
{
CanvasPool.disableSmoothing();
}
// Does the game config provide its own canvas element to use?
if (config.canvas)
{