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

webgl-framework

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webgl-framework - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc