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

gl-util

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-util - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

package.json
{
"name": "gl-util",
"version": "1.0.6",
"version": "1.0.7",
"description": "Set of practical webgl utils",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -146,9 +146,9 @@ 'use strict'

if (options && options.shape) {
texture.width = options.shape[0];
texture.height = options.shape[1];
if (texture.width == null) texture.width = options.shape[0];
if (texture.height == null) texture.height = options.shape[1];
}
else {
let len = data && data.length || 1;
texture.width = options.width || data && data.width || (texture.format === gl.ALPHA ? len : Math.max(len / 4, 1));
texture.height = options.height || (data && data.height) || 1;
if (texture.width == null) texture.width = options.width || data && data.width || (texture.format === gl.ALPHA ? len : Math.max(len / 4, 1));
if (texture.height == null) texture.height = options.height || (data && data.height) || 1;
}

@@ -155,0 +155,0 @@ texture.data = data == null ? null : texture.type === gl.FLOAT ? new Float32Array(data) : texture.type === gl.UNSIGNED_SHORT ? new Uint16Array(data) : new Uint8Array(data);

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