Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero committed Apr 26, 2023
1 parent 5ae0758 commit 1162035
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions impeller/renderer/backend/metal/surface_mtl.mm
Expand Up @@ -135,6 +135,10 @@
return false;
}

// If a transaction is present, `presentDrawable` will present too early. And
// so we wait on an empty command buffer to get scheduled instead, which
// forces us to also wait for all of the previous command buffers in the queue
// to get scheduled.
id<MTLCommandBuffer> command_buffer =
ContextMTL::Cast(context.get())->CreateMTLCommandBuffer();
[command_buffer commit];
Expand Down

0 comments on commit 1162035

Please sign in to comment.