From 190103883caf45093670b9651f0a0a79c2690782 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Tue, 16 Jan 2024 21:45:52 +0100 Subject: [PATCH] Fix uniform matrix functions in WebGLInterface --- vendor/wasm/js/runtime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js index dd962e50f..f5ca325f8 100644 --- a/vendor/wasm/js/runtime.js +++ b/vendor/wasm/js/runtime.js @@ -736,11 +736,11 @@ class WebGLInterface { UniformMatrix2fv: (location, addr) => { let array = this.mem.loadF32Array(addr, 2*2); - this.ctx.uniformMatrix4fv(this.uniforms[location], false, array); + this.ctx.uniformMatrix2fv(this.uniforms[location], false, array); }, UniformMatrix3fv: (location, addr) => { let array = this.mem.loadF32Array(addr, 3*3); - this.ctx.uniformMatrix4fv(this.uniforms[location], false, array); + this.ctx.uniformMatrix3fv(this.uniforms[location], false, array); }, UniformMatrix4fv: (location, addr) => { let array = this.mem.loadF32Array(addr, 4*4);