fix: add missing destroySwapchain argument for web
This commit is contained in:
@@ -40,7 +40,7 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform {
|
|||||||
return asset.buffer.asUint8List(asset.offsetInBytes);
|
return asset.buffer.asUint8List(asset.offsetInBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<ThermionViewer> createViewer() async {
|
Future<ThermionViewer> createViewer({bool destroySwapchain = true}) async {
|
||||||
HTMLCanvasElement? canvas;
|
HTMLCanvasElement? canvas;
|
||||||
if (FilamentApp.instance == null) {
|
if (FilamentApp.instance == null) {
|
||||||
// first, try and initialize bindings to see if the user has included thermion_dart.js manually in index.html
|
// first, try and initialize bindings to see if the user has included thermion_dart.js manually in index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user