gl-texture2d
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"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) |
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
24584
531