cardboard-vr-display
Advanced tools
Comparing version 1.0.16 to 1.0.18
{ | ||
"name": "cardboard-vr-display", | ||
"version": "1.0.16", | ||
"version": "1.0.18", | ||
"homepage": "https://github.com/immersive-web/cardboard-vr-display", | ||
@@ -43,4 +43,4 @@ "authors": [ | ||
"nosleep.js": "^0.7.0", | ||
"webvr-polyfill-dpdb": "^1.0.11" | ||
"webvr-polyfill-dpdb": "^1.0.17" | ||
} | ||
} |
@@ -272,3 +272,9 @@ /* | ||
// Hack for predistorted: true. | ||
var canvas = this.layer_.source.getContext('webgl').canvas; | ||
var gl = this.layer_.source.getContext('webgl'); | ||
if (!gl) | ||
gl = this.layer_.source.getContext('experimental-webgl'); | ||
if (!gl) | ||
gl = this.layer_.source.getContext('webgl2'); | ||
var canvas = gl.canvas; | ||
if (canvas.width != this.lastWidth || canvas.height != this.lastHeight) { | ||
@@ -300,2 +306,4 @@ this.cardboardUI_.onResize(); | ||
var gl = this.layer_.source.getContext('webgl'); | ||
if (!gl) gl = this.layer_.source.getContext('experimental-webgl'); | ||
if (!gl) gl = this.layer_.source.getContext('webgl2'); | ||
// Size the CSS canvas. | ||
@@ -302,0 +310,0 @@ // Added padding on right and bottom because iPhone 5 will not |
Sorry, the diff of this file is too big to display
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
368527
7467
Updatedwebvr-polyfill-dpdb@^1.0.17