|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
import { Group } from '../../objects/Group.js';
|
|
|
import { Matrix4 } from '../../math/Matrix4.js';
|
|
|
+import { Vector2 } from '../../math/Vector2.js';
|
|
|
import { Vector3 } from '../../math/Vector3.js';
|
|
|
import { Vector4 } from '../../math/Vector4.js';
|
|
|
import { Quaternion } from '../../math/Quaternion.js';
|
|
@@ -60,7 +61,7 @@ function WebVRManager( renderer ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- var currentSize, currentPixelRatio;
|
|
|
+ var currentSize = new Vector2(), currentPixelRatio;
|
|
|
|
|
|
function onVRDisplayPresentChange() {
|
|
|
|
|
@@ -71,7 +72,7 @@ function WebVRManager( renderer ) {
|
|
|
var renderHeight = eyeParameters.renderHeight * framebufferScaleFactor;
|
|
|
|
|
|
currentPixelRatio = renderer.getPixelRatio();
|
|
|
- currentSize = renderer.getSize();
|
|
|
+ renderer.getSize( currentSize );
|
|
|
|
|
|
renderer.setDrawingBufferSize( renderWidth * 2, renderHeight, 1 );
|
|
|
|