Browse Source

WebVRManager: always stop animation when not presenting

Jaakko Manninen 7 years ago
parent
commit
f7a9a0fce4
1 changed files with 1 additions and 8 deletions
  1. 1 8
      src/renderers/webvr/WebVRManager.js

+ 1 - 8
src/renderers/webvr/WebVRManager.js

@@ -56,7 +56,6 @@ function WebVRManager( renderer ) {
 	}
 
 	var currentSize, currentPixelRatio;
-	var isAnimating;
 
 	function onVRDisplayPresentChange() {
 
@@ -83,13 +82,7 @@ function WebVRManager( renderer ) {
 
 			}
 
-			if ( isAnimating ) {
-
-				animation.stop();
-
-				isAnimating = false;
-
-			}
+			animation.stop();
 
 		}