From 485ce91517ce32f11b1ce2caf4a1481d4b18fd27 Mon Sep 17 00:00:00 2001 From: Daniel Gamage Date: Wed, 15 Nov 2023 21:38:21 -0500 Subject: [PATCH] pairing vec2 type handlers vec2s containing int32, uint32, and f32 were using one another's designated Views --- src/buffer-views.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buffer-views.ts b/src/buffer-views.ts index 2f0a75d..672c1fb 100644 --- a/src/buffer-views.ts +++ b/src/buffer-views.ts @@ -64,9 +64,9 @@ const b: Record = { const typeInfo: Record = { ...b, - 'vec2': b.vec2f, - 'vec2': b.vec2i, - 'vec2': b.vec2u, + 'vec2': b.vec2i, + 'vec2': b.vec2u, + 'vec2': b.vec2f, 'vec2': b.vec2h, 'vec3': b.vec3i, 'vec3': b.vec3u, @@ -478,4 +478,4 @@ export function setTypedValues(typeDef: TypeDefinition, data: any, arrayBuffer: */ export function setStructuredValues(varDef: VariableDefinition, data: any, arrayBuffer: ArrayBuffer, offset = 0) { setTypedValues(varDef.typeDefinition, data, arrayBuffer, offset); -} \ No newline at end of file +}