Skip to content

Commit

Permalink
feat(core): webgl renderer state
Browse files Browse the repository at this point in the history
  • Loading branch information
sakitam-fdd committed May 28, 2022
1 parent 458af7c commit 2ae446d
Show file tree
Hide file tree
Showing 3 changed files with 507 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class Renderer {
constructor(gl: WebGLRenderingContext | WebGL2RenderingContext) {
this.#gl = gl;

this.#state = new State(this.#gl);
this.#state = new State(this);
this.vertexAttribDivisor = this.getExtension(
'ANGLE_instanced_arrays',
'vertexAttribDivisor',
Expand Down

0 comments on commit 2ae446d

Please sign in to comment.