Skip to content
Snippets Groups Projects
Unverified Commit 1e0c512c authored by Albin Larsson's avatar Albin Larsson Committed by GitHub
Browse files

set PIXI SPRITE_MAX_TEXTURES

To avoid PIXI initiation crash when the client is Firefox and Linux.
https://github.com/pixijs/pixi.js/issues/4478
parent 7c42d3c5
Branches
No related tags found
No related merge requests found
......@@ -180,7 +180,8 @@ function Canvas() {
imageSize3 = config.loader.textures.big.size;
}
PIXI.settings.SCALE_MODE = 1
PIXI.settings.SCALE_MODE = 1;
PIXI.settings.SPRITE_MAX_TEXTURES = Math.min(PIXI.settings.SPRITE_MAX_TEXTURES , 16);
var renderOptions = {
resolution: 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment