Skip to content

Commit cf74a7d

Browse files
committed
Config.pixelArt setting applied to CanvasPool.
1 parent a836c89 commit cf74a7d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

v3/src/boot/CreateRenderer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ var CreateRenderer = function (game)
4141
config.renderType = CONST.WEBGL;
4242
}
4343

44+
// Pixel Art mode?
45+
if (config.pixelArt)
46+
{
47+
CanvasPool.disableSmoothing();
48+
}
49+
4450
// Does the game config provide its own canvas element to use?
4551
if (config.canvas)
4652
{

0 commit comments

Comments
 (0)