Explicitly wait for subpass buffers to be scheduled. (flutter/engine#115)

This is pending the addition of explicit synchronization primitives to
Impeller. It is unclear what the addition of such primitives would mean
to the future OpenGL ES backend.
This commit is contained in:
Chinmay Garde
2022-04-05 15:25:16 -07:00
committed by Dan Field
parent 025b9b2e24
commit 90e5befb67

View File

@@ -173,6 +173,7 @@ bool CommandBufferMTL::SubmitCommands(CompletionCallback callback) {
}
[buffer_ commit];
[buffer_ waitUntilScheduled];
buffer_ = nil;
return true;
}