Socket
Socket
Sign inDemoInstall

webgl-framework

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "webgl-framework",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Basic low-level WebGL framework",

@@ -145,7 +145,7 @@ 'use strict';

try {
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
gl = canvas.getContext('webgl', { alpha: false }) || canvas.getContext('experimental-webgl', { alpha: false });
gl.viewportWidth = canvas.width;
gl.viewportHeight = canvas.height;
this.isETC1Supported = !!gl.getExtension('WEBGL_compressed_texture_etc1');
} catch (e) {}
} catch (e) { }
if (!gl) {

@@ -162,8 +162,8 @@ console.warn('Could not initialise WebGL');

*/
BaseRenderer.prototype.initGL2 = function(canvas) {
BaseRenderer.prototype.initGL2 = function (canvas) {
var gl = null;
try {
gl = canvas.getContext('webgl2');
} catch (e) {}
gl = canvas.getContext('webgl2', { alpha: false });
} catch (e) { }
this.isWebGL2 = !!gl;

@@ -170,0 +170,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc