remove register/unregister swapchain/view in TextureProjection
since we are rendering each view separately, this is no longer necessary
This commit is contained in:
@@ -86,11 +86,6 @@ class TextureProjection {
|
|||||||
await projectionView.setViewport(viewport.width, viewport.height);
|
await projectionView.setViewport(viewport.width, viewport.height);
|
||||||
await projectionView.setRenderTarget(projectionRenderTarget);
|
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._(
|
return TextureProjection._(
|
||||||
sourceView: sourceView as FFIView,
|
sourceView: sourceView as FFIView,
|
||||||
depthView: depthView,
|
depthView: depthView,
|
||||||
@@ -104,10 +99,6 @@ class TextureProjection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future destroy() async {
|
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 projectionMaterialInstance.destroy();
|
||||||
await projectionMaterial.destroy();
|
await projectionMaterial.destroy();
|
||||||
await FilamentApp.instance!.destroyView(depthView);
|
await FilamentApp.instance!.destroyView(depthView);
|
||||||
|
|||||||
Reference in New Issue
Block a user