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

gl-texture2d

Package Overview
Dependencies
Maintainers
3
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 2.0.4 to 2.0.5

2

package.json
{
"name": "gl-texture2d",
"version": "2.0.4",
"version": "2.0.5",
"description": "WebGL texture wrapper",

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

@@ -121,3 +121,3 @@ 'use strict'

if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {
if(!webglew(gl).OES_texture_float_linear) {
if(!webglew(gl).texture_float_linear) {
v = gl.NEAREST

@@ -141,3 +141,3 @@ }

if(this.type === gl.FLOAT && linearTypes.indexOf(v) >= 0) {
if(!webglew(gl).OES_texture_float_linear) {
if(!webglew(gl).texture_float_linear) {
v = gl.NEAREST

@@ -449,2 +449,5 @@ }

}
if(type === gl.FLOAT && !webglew(gl).texture_float) {
throw new Error('gl-texture2d: Floating point textures not supported on this platform')
}
var tex = initTexture(gl)

@@ -451,0 +454,0 @@ gl.texImage2D(gl.TEXTURE_2D, 0, format, width, height, 0, format, type, null)

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