Browse Source

Backends: Metal: Remove weak ref (#5122, #5123)

Wvader 3 years ago
parent
commit
7602277c86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backends/imgui_impl_metal.mm

+ 1 - 1
backends/imgui_impl_metal.mm

@@ -583,7 +583,7 @@ void ImGui_ImplMetal_DestroyDeviceObjects()
         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(), ^{