mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Co-authored-by: Wvader <34067397+wvader@users.noreply.github.com>
This commit is contained in:
parent
1ba2905017
commit
2d76b09d2e
@ -582,8 +582,11 @@ void ImGui_ImplMetal_DestroyDeviceObjects()
|
|||||||
vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert);
|
vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert);
|
||||||
indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx);
|
indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx);
|
||||||
}
|
}
|
||||||
|
#if __has_feature(objc_arc)
|
||||||
id weakSelf = self;
|
__weak id weakSelf = self;
|
||||||
|
#else
|
||||||
|
__unsafe_unretained id weakSelf = self;
|
||||||
|
#endif
|
||||||
[commandBuffer addCompletedHandler:^(id<MTLCommandBuffer>)
|
[commandBuffer addCompletedHandler:^(id<MTLCommandBuffer>)
|
||||||
{
|
{
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
Loading…
Reference in New Issue
Block a user