diff --git a/.version b/.version index 0611d73..8e54c22 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v6.3.3 +v6.3.4 diff --git a/package.json b/package.json index 666e655..b4ddd5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ohzi-core", - "version": "6.3.3", + "version": "6.3.4", "description": "OHZI Core Library", "source": "src/index.js", "module": "build/index.module.js", diff --git a/src/Graphics.js b/src/Graphics.js index e17eeaa..b8892f4 100644 --- a/src/Graphics.js +++ b/src/Graphics.js @@ -25,18 +25,20 @@ class Graphics this.canvas_context = undefined; this.context_attributes = undefined; - this.context_attributes = context_attributes || { + this.context_attributes = { alpha: true, depth: true, desynchronized: false, stencil: false, antialias: false, premultipliedAlpha: true, - preserveDrawingBuffer: false, + preserveDrawingBuffer: true, powerPreference: 'high-performance', logarithmicDepthBuffer: false }; + Object.assign(this.context_attributes, context_attributes); + if (context_attributes.force_webgl2) { this.canvas_context = canvas.getContext('webgl2', this.context_attributes) || @@ -57,6 +59,7 @@ class Graphics canvas: canvas, context: this.canvas_context }); + this._renderer.autoClear = false; this._renderer.setPixelRatio(1);