commit daa817605484e5a9abe9d242872b69ea3ebcac08
parent c2ab89675b03df67bfe2dc850455c935d8d5a180
Author: amin <dev@aminmesbah.com>
Date: Fri, 21 Jun 2019 02:04:27 +0000
Render a black background successfully!
FossilOrigin-Name: 0366b70158b4356a015e1bc283ef932a33a8a1d4e52189a49fd9afe6bb19ab13
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/imports.js b/js/imports.js
@@ -18,7 +18,7 @@ imports["webglBlendFunc"] = function(sfactor, dfactor) {
gl.blendFunc(sfactor, dfactor);
}
imports["webglBufferData"] = function(target, size, data, usage) {
- let dataslice = memory.subarray(data, data+length);
+ let dataslice = memory.subarray(data, data + size);
gl.bufferData(target, dataslice, usage);
}
imports["webglClear"] = function(mask) {