We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0edd09f commit b5272eaCopy full SHA for b5272ea
Modules/@babylonjs/react-native/EngineHook.ts
@@ -70,8 +70,8 @@ if (Platform.OS == "windows") {
70
// TODO: https://github.com/BabylonJS/BabylonNative/issues/577
71
// Windows HMDs require different rendering behaviors than default xr rendering for mobile devices
72
const sessionManager = await originalEnterXRAsync.apply(this, args);
73
- this.scene.clearColor = Color3.Black().toColor4();
74
- this.scene.autoClear = true;
+ sessionManager.scene.clearColor = Color3.Black().toColor4();
+ sessionManager.scene.autoClear = true;
75
return sessionManager;
76
}
77
0 commit comments