webgl-framework
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"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 @@ |
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
150275