Skip to content

Commit

Permalink
Merge pull request #21146 from chpatrick/reset-current-depth
Browse files Browse the repository at this point in the history
WebXRManager: Reset _currentDepthNear/_currentDepthFar in onSessionEnd
  • Loading branch information
mrdoob committed Jan 25, 2021
2 parents 58338b6 + 608216f commit a295496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderers/webxr/WebXRManager.js
Expand Up @@ -116,6 +116,9 @@ function WebXRManager( renderer, gl ) {

inputSourcesMap.clear();

_currentDepthNear = null;
_currentDepthFar = null;

//

renderer.setFramebuffer( null );
Expand Down

0 comments on commit a295496

Please sign in to comment.