Backends: Metal: avoid redundant vertex buffer bind in SetupRenderState. (#9343)
diff --git a/backends/imgui_impl_metal.mm b/backends/imgui_impl_metal.mm index 0ab182a..037782b 100644 --- a/backends/imgui_impl_metal.mm +++ b/backends/imgui_impl_metal.mm
@@ -16,6 +16,7 @@ // CHANGELOG // (minor and older changes stripped away, please see git history for details) +// 2026-04-03: Metal: avoid redundant vertex buffer bind in SetupRenderState. (#9343) // 2026-03-19: Fixed issue in ImGui_ImplMetal_RenderDrawData() if ImTextureID_Invalid is defined to be != 0, which became the default since 2026-03-12. (#9295, #9310) // 2025-09-18: Call platform_io.ClearRendererHandlers() on shutdown. // 2025-06-11: Added support for ImGuiBackendFlags_RendererHasTextures, for dynamic font atlas. Removed ImGui_ImplMetal_CreateFontsTexture() and ImGui_ImplMetal_DestroyFontsTexture(). @@ -215,8 +216,7 @@ [commandEncoder setRenderPipelineState:renderPipelineState]; - [commandEncoder setVertexBuffer:vertexBuffer.buffer offset:0 atIndex:0]; - [commandEncoder setVertexBufferOffset:vertexBufferOffset atIndex:0]; + [commandEncoder setVertexBuffer:vertexBuffer.buffer offset:vertexBufferOffset atIndex:0]; } // Metal Render function.
diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index 3043b3b..ef5a44e 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt
@@ -46,6 +46,9 @@ - InputText: - InputTextMultiline: fixed an issue processing deactivation logic when an active multi-line edit is clipped due to being out of view. +- Backends: + - Metal: avoid redundant vertex buffer bind in SetupRenderState, which leads + to validation issue. (#9343) [@Hunam6] -----------------------------------------------------------------------