call render thread method for asyncBeginLoad
This commit is contained in:
@@ -794,7 +794,8 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
|||||||
cb));
|
cb));
|
||||||
}
|
}
|
||||||
if (loadResourcesAsync) {
|
if (loadResourcesAsync) {
|
||||||
if(!GltfResourceLoader_asyncBeginLoad(gltfResourceLoader, filamentAsset)) {
|
final result = await withBoolCallback((cb) => GltfResourceLoader_asyncBeginLoadRenderThread(gltfResourceLoader, filamentAsset, cb));
|
||||||
|
if(!result) {
|
||||||
throw Exception("Failed to begin async loading");
|
throw Exception("Failed to begin async loading");
|
||||||
}
|
}
|
||||||
GltfResourceLoader_asyncUpdateLoad(gltfResourceLoader);
|
GltfResourceLoader_asyncUpdateLoad(gltfResourceLoader);
|
||||||
|
|||||||
Reference in New Issue
Block a user