File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,6 @@ THREE.VREffect = function ( renderer, onError ) {
137
137
138
138
window . addEventListener ( 'vrdisplaypresentchange' , onVRDisplayPresentChange , false ) ;
139
139
140
- this . dispose = function ( ) {
141
- window . removeEventListener ( 'vrdisplaypresentchange' , onVRDisplayPresentChange , false ) ;
142
- } ;
143
-
144
140
this . setFullScreen = function ( boolean ) {
145
141
146
142
return new Promise ( function ( resolve , reject ) {
@@ -280,7 +276,6 @@ THREE.VREffect = function ( renderer, onError ) {
280
276
281
277
}
282
278
283
-
284
279
renderRectL = {
285
280
x : Math . round ( size . width * leftBounds [ 0 ] ) ,
286
281
y : Math . round ( size . height * leftBounds [ 1 ] ) ,
@@ -398,6 +393,12 @@ THREE.VREffect = function ( renderer, onError ) {
398
393
399
394
} ;
400
395
396
+ this . dispose = function ( ) {
397
+
398
+ window . removeEventListener ( 'vrdisplaypresentchange' , onVRDisplayPresentChange , false ) ;
399
+
400
+ } ;
401
+
401
402
//
402
403
403
404
function fovToNDCScaleOffset ( fov ) {
You can’t perform that action at this time.
0 commit comments