|
@@ -19848,6 +19848,12 @@ function WebVRManager( renderer ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
+ this.submitFrame = function () {
|
|
|
+
|
|
|
+ if ( device && device.isPresenting ) device.submitFrame();
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -21156,8 +21162,6 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
// update camera matrices and frustum
|
|
|
|
|
|
- camera.onBeforeRender( _this );
|
|
|
-
|
|
|
if ( camera.parent === null ) camera.updateMatrixWorld();
|
|
|
|
|
|
if ( vr.enabled ) {
|
|
@@ -21342,7 +21346,11 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- camera.onAfterRender( _this );
|
|
|
+ if ( vr.enabled ) {
|
|
|
+
|
|
|
+ vr.submitFrame();
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
// _gl.finish();
|
|
|
|