commit c2ab89675b03df67bfe2dc850455c935d8d5a180
parent 1e096735a861f2436dfceed880ad8efc89729d4e
Author: amin <dev@aminmesbah.com>
Date: Fri, 21 Jun 2019 01:38:09 +0000
Fix wrapped webgl function
FossilOrigin-Name: a2f471d38471ef53b21de60311310892b6bb0abe455c24417e6a51d46dafa049
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/imports.js b/js/imports.js
@@ -121,7 +121,7 @@ imports["webglShaderSource"] = function(shader_id, source_ptr, src_len) {
}
imports["webglUniform1f"] = function(location_id, value) {
let loc = gl_id_map[location_id];
- gl['uniform1i'](loc, value);
+ gl['uniform1f'](loc, value);
}
imports["webglUniform1i"] = function(location_id, value) {
let loc = gl_id_map[location_id];