From 9c473a34ced40bb5506189eb67894822c9d9fe22 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 6 Aug 2026 22:39:40 +0200 Subject: [PATCH] Example: GLFW+Metal: fix. --- docs/CHANGELOG.txt | 2 ++ examples/example_glfw_metal/main.mm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index b2a179c98..650564d7f 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -72,6 +72,8 @@ Docking+Viewports Branch: - Backends: - Metal: fixed resizing windows losing framebuffer scale. (#6828, #8856) [@laikoken] +- Examples: + - SDL3+Metal, GLFW+Metal: fix multi-viewport support. ----------------------------------------------------------------------- diff --git a/examples/example_glfw_metal/main.mm b/examples/example_glfw_metal/main.mm index fc5f02643..a697b9eab 100644 --- a/examples/example_glfw_metal/main.mm +++ b/examples/example_glfw_metal/main.mm @@ -69,7 +69,7 @@ int main(int, char**) id commandQueue = [device newCommandQueue]; // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForOpenGL(window, true); + ImGui_ImplGlfw_InitForOther(window, true); ImGui_ImplMetal_Init(device); // Load Fonts