rename requestAnimationFrame to requestFrame
This commit is contained in:
1 parent
2b6693a826
commit
1be1979c05
3 files changed
+4
-3
No files matched your search
@@ -587,7 +587,7 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
||||
completer.complete(true);
|
||||
});
|
||||
|
||||
RenderThread_requestAnimationFrame(callback.nativeFunction.cast());
|
||||
RenderThread_requestFrame(callback.nativeFunction.cast());
|
||||
|
||||
try {
|
||||
await completer.future.timeout(Duration(seconds: 1));
|
||||
@@ -669,6 +669,7 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
||||
PixelDataFormat pixelDataFormat = PixelDataFormat.RGBA,
|
||||
PixelDataType pixelDataType = PixelDataType.FLOAT,
|
||||
Future Function(View)? beforeRender}) async {
|
||||
|
||||
if (swapChain == null) {
|
||||
if (_swapChains.isEmpty) {
|
||||
throw Exception("No swapchains registered");
|
||||
|
||||
Reference in new issue
Block a user