From 44b53fa531768a90eb722735c6272bd86e9ca883 Mon Sep 17 00:00:00 2001 From: jfboeve Date: Thu, 11 Sep 2025 11:37:10 +0200 Subject: [PATCH] fixed getAttributeLocations function --- src/core/lib/WebGlContextWrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/WebGlContextWrapper.ts b/src/core/lib/WebGlContextWrapper.ts index a5356728..410fdfee 100644 --- a/src/core/lib/WebGlContextWrapper.ts +++ b/src/core/lib/WebGlContextWrapper.ts @@ -725,7 +725,7 @@ export class WebGlContextWrapper { const result = {} as Record; for (let i = 0; i < length; i++) { const { name } = gl.getActiveAttrib(program, i) as WebGLActiveInfo; - result[name] = i; + result[name] = gl.getAttribLocation(program, name); } return result; }