Skip to content

Commit

Permalink
Backends: Metal: Remove weak ref (ocornut#5122, ocornut#5123)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsousacode authored and ocornut committed Mar 22, 2022
1 parent 31e77ea commit 7602277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/imgui_impl_metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ - (void)renderDrawData:(ImDrawData *)drawData
indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx);
}

__weak id weakSelf = self;
id weakSelf = self;
[commandBuffer addCompletedHandler:^(id<MTLCommandBuffer>)
{
dispatch_async(dispatch_get_main_queue(), ^{
Expand Down

0 comments on commit 7602277

Please sign in to comment.