always call platformFFI.nextRgba no matter what to avoid dead lock because of unknown reason
This commit is contained in:
parent
47143318ba
commit
50aa5880de
@ -2504,12 +2504,15 @@ class FFI {
|
||||
// Fetch the image buffer from rust codes.
|
||||
final sz = platformFFI.getRgbaSize(sessionId, display);
|
||||
if (sz == 0) {
|
||||
platformFFI.nextRgba(sessionId, display);
|
||||
return;
|
||||
}
|
||||
final rgba = platformFFI.getRgba(sessionId, display, sz);
|
||||
if (rgba != null) {
|
||||
onEvent2UIRgba();
|
||||
imageModel.onRgba(display, rgba);
|
||||
} else {
|
||||
platformFFI.nextRgba(sessionId, display);
|
||||
}
|
||||
}
|
||||
} else if (message is EventToUI_Texture) {
|
||||
|
Loading…
Reference in New Issue
Block a user