mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Config.pixelArt setting applied to CanvasPool.
This commit is contained in:
parent
a836c894e6
commit
cf74a7dd81
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue