Backends: GLFW: Add ImGui_ImplGlfw_InitForOther() instead of ImGui_ImplGlfw_InitForWebGPU() so it can be used for e.g. DX11. (#3632)

Amend dff0044
This commit is contained in:
ocornut
2021-02-10 17:27:33 +01:00
parent f14042ca78
commit 647a308ad3
4 changed files with 6 additions and 9 deletions

View File

@ -75,7 +75,7 @@ int main(int, char**)
//ImGui::StyleColorsClassic();
// Setup Platform/Renderer backends
ImGui_ImplGlfw_InitForWebGPU(window, true);
ImGui_ImplGlfw_InitForOther(window, true);
ImGui_ImplWGPU_Init(wgpu_device, 3, WGPUTextureFormat_RGBA8Unorm);
// Load Fonts