Skip to content

Commit

Permalink
fix(webgl): fix arg types for defBuffer()/compileAttribPool()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 9, 2023
1 parent 4378125 commit 71a9e16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/webgl/src/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export class WebGLArrayBuffer<T extends TypedArray> implements IWebGLBuffer<T> {
export const defBuffer = (
gl: WebGLRenderingContext,
data?: TypedArray,
target = gl.ARRAY_BUFFER,
mode = gl.STATIC_DRAW,
target: GLenum = gl.ARRAY_BUFFER,
mode: GLenum = gl.STATIC_DRAW,
retain = false
) => new WebGLArrayBuffer(gl, data, target, mode, retain);

Expand Down Expand Up @@ -188,8 +188,8 @@ export const compileAttribPool = (
gl: WebGLRenderingContext,
pool: AttribPool,
ids?: string[],
target = gl.ARRAY_BUFFER,
mode = gl.STATIC_DRAW
target: GLenum = gl.ARRAY_BUFFER,
mode: GLenum = gl.STATIC_DRAW
) => {
const buf = defBuffer(gl, pool.bytes(), target, mode);
const spec = <ModelAttributeSpecs>{};
Expand Down

0 comments on commit 71a9e16

Please sign in to comment.