Skip to content

Commit

Permalink
#21 OffscreenCanvasの実装(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Jan 27, 2023
1 parent 5f90f84 commit ac887ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/util/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ class Renderer

if (gl) {

this._$context = new CanvasToWebGLContext(
gl, this.samples
);
this._$context = new CanvasToWebGLContext(gl, this.samples);

this._$maxTextureSize = Math.min(
8192, gl.getParameter(gl.MAX_TEXTURE_SIZE)
Expand Down
2 changes: 1 addition & 1 deletion src/worker/RenderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class CommandController
this._$canvas = canvas
this._$samples = samples;

let gl = canvas.getContext("webgl2", {
const gl = canvas.getContext("webgl2", {
"stencil": true,
"premultipliedAlpha": true,
"antialias": false,
Expand Down

0 comments on commit ac887ad

Please sign in to comment.