Skip to content

Commit

Permalink
Backends: Metal: Align code more closely with other backends. OSX: Ad…
Browse files Browse the repository at this point in the history
…d missing return for mouse pos events.

'#if __has_feature(objc_arc)' was removed as callback gets required reference via ImGui_ImplMetal_GetBackendData() so that weakref is not really needed.
  • Loading branch information
rokups authored and ocornut committed May 4, 2022
1 parent 55f8989 commit d768b8c
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 261 deletions.
2 changes: 1 addition & 1 deletion backends/imgui_impl_metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id<MTLDevice> device);
IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown();
IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor);
IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data,
IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData,
id<MTLCommandBuffer> commandBuffer,
id<MTLRenderCommandEncoder> commandEncoder);

Expand Down
Loading

0 comments on commit d768b8c

Please sign in to comment.