Skip to content

Commit 5c0c8b1

Browse files
authored
Remove extra clear in EngineHook workaround (#278)
1 parent f0c6bf5 commit 5c0c8b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if (Platform.OS === "android" || Platform.OS === "ios") {
8787
(WebXRSessionManager.prototype as any)._createRenderTargetTexture = function (...args: any[]): RenderTargetTexture {
8888
const renderTargetTexture = originalCreateRenderTargetTexture.apply(this, args);
8989
renderTargetTexture.onClearObservable.add((engine: ThinEngine) => {
90-
engine.clear(renderTargetTexture.clearColor, false, true, true);
90+
// do nothing
9191
});
9292

9393
return renderTargetTexture;

0 commit comments

Comments
 (0)