gl-texture2d
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "gl-texture2d", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "WebGL texture wrapper", | ||
@@ -5,0 +5,0 @@ "main": "texture.js", |
@@ -167,3 +167,6 @@ "use strict" | ||
} | ||
var size = ndarray.size(array) | ||
var size = array.size | ||
if(typeof size !== "number") { | ||
size = ndarray.size(array) | ||
} | ||
if(type === ctype && packed) { | ||
@@ -291,3 +294,7 @@ //Array data types are compatible, can directly copy into texture | ||
} else { | ||
buffer = array.data.subarray(array.offset, array.offset + ndarray.size(array)) | ||
var array_size = array.size | ||
if(typeof array_size !== "number") { | ||
array_size = ndarray.size(array) | ||
} | ||
buffer = array.data.subarray(array.offset, array.offset + array_size) | ||
} | ||
@@ -294,0 +301,0 @@ var tex = initTexture(gl) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17209
309