Backends: Metal: Conditional check, amend 7602277 (#5122, #5123)

Co-authored-by: Wvader <34067397+wvader@users.noreply.github.com>
features/potocpav-newer-lines-2
whale02 ago%!(EXTRA string=3 years) committed by GitHub
parent 1ba2905017
commit 2d76b09d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      backends/imgui_impl_metal.mm

@ -582,8 +582,11 @@ void ImGui_ImplMetal_DestroyDeviceObjects()
vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert);
indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx);
}
id weakSelf = self;
#if __has_feature(objc_arc)
__weak id weakSelf = self;
#else
__unsafe_unretained id weakSelf = self;
#endif
[commandBuffer addCompletedHandler:^(id<MTLCommandBuffer>)
{
dispatch_async(dispatch_get_main_queue(), ^{

Loading…
Cancel
Save