Skip to content

Commit

Permalink
Explicitly wait for subpass buffers to be scheduled. (flutter#115)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent 6e8368c commit 93c5919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impeller/renderer/backend/metal/command_buffer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ static void LogMTLCommandBufferErrorIfPresent(id<MTLCommandBuffer> buffer) {
}

[buffer_ commit];
[buffer_ waitUntilScheduled];
buffer_ = nil;
return true;
}
Expand Down

0 comments on commit 93c5919

Please sign in to comment.