From 96694be017b71cd2338e1d7d93b17ed07df3faa2 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 22 May 2025 15:22:15 +0800 Subject: [PATCH] remove register/unregister swapchain/view in TextureProjection since we are rendering each view separately, this is no longer necessary --- thermion_dart/lib/src/utils/src/texture_projection.dart | 9 --------- 1 file changed, 9 deletions(-) diff --git a/thermion_dart/lib/src/utils/src/texture_projection.dart b/thermion_dart/lib/src/utils/src/texture_projection.dart index 65e175f0..9583d639 100644 --- a/thermion_dart/lib/src/utils/src/texture_projection.dart +++ b/thermion_dart/lib/src/utils/src/texture_projection.dart @@ -86,11 +86,6 @@ class TextureProjection { await projectionView.setViewport(viewport.width, viewport.height); await projectionView.setRenderTarget(projectionRenderTarget); - final swapChain = await FilamentApp.instance!.getSwapChain(sourceView); - - await FilamentApp.instance!.register(swapChain, depthView); - await FilamentApp.instance!.register(swapChain, projectionView); - return TextureProjection._( sourceView: sourceView as FFIView, depthView: depthView, @@ -104,10 +99,6 @@ class TextureProjection { } Future destroy() async { - final swapChain = await FilamentApp.instance!.getSwapChain(sourceView); - - await FilamentApp.instance!.unregister(swapChain, depthView); - await FilamentApp.instance!.unregister(swapChain, projectionView); await projectionMaterialInstance.destroy(); await projectionMaterial.destroy(); await FilamentApp.instance!.destroyView(depthView);