Skip to content

Commit b5272ea

Browse files
author
C. M. Barth
authored
change variable usage for auto clear (#172)
1 parent 0edd09f commit b5272ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/@babylonjs/react-native/EngineHook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ if (Platform.OS == "windows") {
7070
// TODO: https://github.com/BabylonJS/BabylonNative/issues/577
7171
// Windows HMDs require different rendering behaviors than default xr rendering for mobile devices
7272
const sessionManager = await originalEnterXRAsync.apply(this, args);
73-
this.scene.clearColor = Color3.Black().toColor4();
74-
this.scene.autoClear = true;
73+
sessionManager.scene.clearColor = Color3.Black().toColor4();
74+
sessionManager.scene.autoClear = true;
7575
return sessionManager;
7676
}
7777
}

0 commit comments

Comments
 (0)