fix: addDestroySwapchain argument to createViewer() (true by default). This is only used on iOS/macOS where a single swapchain is shared between all render targets

This commit is contained in:
Nick Fisher
2025-07-07 17:37:28 +08:00
parent 3c1b26af2c
commit 353b33b7c3
3 changed files with 13 additions and 9 deletions

View File

@@ -11,8 +11,8 @@ import 'package:thermion_flutter_platform_interface/thermion_flutter_platform_in
class ThermionFlutterPlugin {
ThermionFlutterPlugin._();
static Future<ThermionViewer> createViewer() {
return ThermionFlutterPlatform.instance.createViewer();
static Future<ThermionViewer> createViewer({bool destroySwapchain = true}) {
return ThermionFlutterPlatform.instance.createViewer(destroySwapchain: destroySwapchain);
}
}