From 09f9f86f716f781e948e800e70d21b1682cc67dd Mon Sep 17 00:00:00 2001 From: Gary Hsu Date: Fri, 20 Aug 2021 17:03:47 -0700 Subject: [PATCH] Remove extra clear in EngineHook workaround --- Modules/@babylonjs/react-native/EngineHook.ts | 2 +- Modules/@babylonjs/react-native/submodules/BabylonNative | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/@babylonjs/react-native/EngineHook.ts b/Modules/@babylonjs/react-native/EngineHook.ts index 6c1c78f56..8c7039ca4 100644 --- a/Modules/@babylonjs/react-native/EngineHook.ts +++ b/Modules/@babylonjs/react-native/EngineHook.ts @@ -87,7 +87,7 @@ if (Platform.OS === "android" || Platform.OS === "ios") { (WebXRSessionManager.prototype as any)._createRenderTargetTexture = function (...args: any[]): RenderTargetTexture { const renderTargetTexture = originalCreateRenderTargetTexture.apply(this, args); renderTargetTexture.onClearObservable.add((engine: ThinEngine) => { - engine.clear(renderTargetTexture.clearColor, false, true, true); + // do nothing }); return renderTargetTexture; diff --git a/Modules/@babylonjs/react-native/submodules/BabylonNative b/Modules/@babylonjs/react-native/submodules/BabylonNative index e8bb154df..03f69dabf 160000 --- a/Modules/@babylonjs/react-native/submodules/BabylonNative +++ b/Modules/@babylonjs/react-native/submodules/BabylonNative @@ -1 +1 @@ -Subproject commit e8bb154df2b348a04637c78bc9730006240bb152 +Subproject commit 03f69dabf71577e0a1623dcb2652e5fea31365d3