Comparing version 1.1.5 to 1.1.6
@@ -13,5 +13,2 @@ /** @module gl-util/context */ | ||
let canvas = opts.canvas; | ||
if (!canvas) canvas = document.createElement('canvas'); | ||
//provide defaults | ||
@@ -21,2 +18,3 @@ | ||
let gl = glContext({ | ||
canvas: opts.canvas ? opts.canvas : document.createElement('canvas'), | ||
antialias: opts.antialias != null ? opts.antialias : true, | ||
@@ -23,0 +21,0 @@ alpha: opts.alpha != null ? opts.alpha : true, |
{ | ||
"name": "gl-util", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Set of practical webgl utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
87418
633