@luma.gl/webgl2-polyfill
Advanced tools
Comparing version 7.0.0-beta.7 to 7.0.0-beta.8
@@ -26,3 +26,3 @@ "use strict"; | ||
function isWebGL2(gl) { | ||
return gl && 32874 === 32874; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -29,0 +29,0 @@ |
@@ -70,4 +70,3 @@ "use strict"; | ||
function isWebGL2(gl) { | ||
var GL_TEXTURE_BINDING_3D = 0x806a; | ||
return gl && 32874 === GL_TEXTURE_BINDING_3D; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -74,0 +73,0 @@ |
@@ -11,3 +11,3 @@ import assert from './assert'; | ||
function isWebGL2(gl) { | ||
return gl && 32874 === 32874; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -83,4 +83,3 @@ const OES_element_index = 'OES_element_index'; | ||
function isWebGL2(gl) { | ||
const GL_TEXTURE_BINDING_3D = 0x806a; | ||
return gl && 32874 === GL_TEXTURE_BINDING_3D; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -87,0 +86,0 @@ |
@@ -15,3 +15,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
function isWebGL2(gl) { | ||
return gl && 32874 === 32874; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -18,0 +18,0 @@ |
@@ -61,4 +61,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
function isWebGL2(gl) { | ||
var GL_TEXTURE_BINDING_3D = 0x806a; | ||
return gl && 32874 === GL_TEXTURE_BINDING_3D; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -65,0 +64,0 @@ |
{ | ||
"name": "@luma.gl/webgl2-polyfill", | ||
"version": "7.0.0-beta.7", | ||
"version": "7.0.0-beta.8", | ||
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "7.0.0-beta.7" | ||
"@luma.gl/constants": "7.0.0-beta.8" | ||
} | ||
} |
@@ -16,3 +16,3 @@ import GL from '@luma.gl/constants'; | ||
function isWebGL2(gl) { | ||
return gl && gl.TEXTURE_BINDING_3D === GL.TEXTURE_BINDING_3D; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -109,4 +109,3 @@ /* eslint-disable no-inline-comments, max-len, camelcase */ | ||
function isWebGL2(gl) { | ||
const GL_TEXTURE_BINDING_3D = 0x806a; | ||
return gl && gl.TEXTURE_BINDING_3D === GL_TEXTURE_BINDING_3D; | ||
return Boolean(gl && gl._version === 2); | ||
} | ||
@@ -113,0 +112,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
137036
1332
+ Added@luma.gl/constants@7.0.0-beta.8(transitive)
- Removed@luma.gl/constants@7.0.0-beta.7(transitive)