Skip to content

Commit

Permalink
fix(webgl): update compileAttribPool()
Browse files Browse the repository at this point in the history
- always ensure GLType is used in resulting ModelAttributeSpec's
  • Loading branch information
postspectacular committed Feb 2, 2021
1 parent d4b397b commit 6b5dd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webgl/src/buffer.ts
@@ -1,5 +1,5 @@
import type { TypedArray } from "@thi.ng/api";
import type { AttribPool } from "@thi.ng/vector-pools";
import { asGLType, AttribPool } from "@thi.ng/vector-pools";
import type { IndexBufferSpec, IWebGLBuffer } from "./api/buffers";
import {
DrawMode,
Expand Down Expand Up @@ -168,7 +168,7 @@ export const compileAttribPool = (
spec[id] = {
buffer: buf,
size: attr.size,
type: attr.type,
type: asGLType(attr.type),
stride: pool.byteStride,
offset: attr.byteOffset,
};
Expand Down

0 comments on commit 6b5dd8e

Please sign in to comment.