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

@luma.gl/webgl2-polyfill

Package Overview
Dependencies
Maintainers
7
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/webgl2-polyfill - npm Package Compare versions

Comparing version 7.0.0-beta.7 to 7.0.0-beta.8

2

dist/es5/polyfill-table.js

@@ -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

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