Skip to content

Commit

Permalink
setup Screenshot on getCanvas (#5495)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpu committed Mar 14, 2024
1 parent 4e4620a commit c90f613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/scene/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ module.exports.Component = registerComponent('screenshot', {
getCanvas: function (projection) {
var isVREnabled = this.el.renderer.xr.enabled;
var renderer = this.el.renderer;
this.setup();
// Disable VR.
var params = this.setCapture(projection);
renderer.xr.enabled = false;
Expand Down

0 comments on commit c90f613

Please sign in to comment.