Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-texture2d

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-texture2d - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc