diff --git a/src/core/const.js b/src/core/const.js index 1853e9b..fa2befa 100644 --- a/src/core/const.js +++ b/src/core/const.js @@ -276,7 +276,6 @@ */ export const DEFAULT_RENDER_OPTIONS = { view: null, - resolution: 1, antialias: false, forceFXAA: false, autoResize: false, diff --git a/src/core/const.js b/src/core/const.js index 1853e9b..fa2befa 100644 --- a/src/core/const.js +++ b/src/core/const.js @@ -276,7 +276,6 @@ */ export const DEFAULT_RENDER_OPTIONS = { view: null, - resolution: 1, antialias: false, forceFXAA: false, autoResize: false, diff --git a/src/core/renderers/SystemRenderer.js b/src/core/renderers/SystemRenderer.js index 6254fd7..aed0e21 100644 --- a/src/core/renderers/SystemRenderer.js +++ b/src/core/renderers/SystemRenderer.js @@ -1,6 +1,6 @@ import { sayHello, hex2string, hex2rgb } from '../utils'; import { Matrix } from '../math'; -import { DEFAULT_RENDER_OPTIONS, RENDERER_TYPE } from '../const'; +import { DEFAULT_RENDER_OPTIONS, RENDERER_TYPE, RESOLUTION } from '../const'; import Container from '../display/Container'; import RenderTexture from '../textures/RenderTexture'; import EventEmitter from 'eventemitter3'; @@ -96,7 +96,7 @@ * @member {number} * @default 1 */ - this.resolution = options.resolution; + this.resolution = options.resolution || RESOLUTION; /** * Whether the render view is transparent