1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Examples: GLFW+WebGPU: removed unnecessary ImGui_ImplWGPU_InvalidateDeviceObjects() call during surface resize. (#8381)

+ Relayout changelog.
This commit is contained in:
ocornut 2025-10-22 13:41:45 +02:00
parent 5870b979a8
commit 2a022d997b
2 changed files with 15 additions and 15 deletions

View file

@ -56,17 +56,21 @@ Other Changes:
- MultiSelect: added ImGuiMultiSelectFlags_NoSelectOnRightClick to disable default - MultiSelect: added ImGuiMultiSelectFlags_NoSelectOnRightClick to disable default
right-click processing, which selects item on mouse down and is designed for right-click processing, which selects item on mouse down and is designed for
context-menus. (#8200, #9015) context-menus. (#8200, #9015)
- Backends: GLFW: fixed building on Linux platforms where Wayland headers - Backends:
are not available. (#9024, #8969, #8921, #8920) [@jagot] - GLFW: fixed building on Linux platforms where Wayland headers
- Backends: SDL3: fixed Platform_OpenInShellFn() return value (the return value are not available. (#9024, #8969, #8921, #8920) [@jagot]
was unused in core but might be used by a direct caller). (#9027) [@achabense] - SDL3: fixed Platform_OpenInShellFn() return value (the return value
- Backends: Vulkan: added IMGUI_IMPL_VULKAN_VOLK_FILENAME to configure path to was unused in core but might be used by a direct caller). (#9027) [@achabense]
Volk (default to "volk.h"). (#9008, #7722, #6582, #4854) [@mwlasiuk] - Vulkan: added IMGUI_IMPL_VULKAN_VOLK_FILENAME to configure path to
- Backends: WebGPU: update to compile with Dawn and Emscripten's 4.0.10+ Volk (default to "volk.h"). (#9008, #7722, #6582, #4854) [@mwlasiuk]
'--use-port=emdawnwebgpu' ports. (#8381, #8898) [@brutpitt, @trbabb] - WebGPU: update to compile with Dawn and Emscripten's 4.0.10+
When using Emscripten 4.0.10+, backend now defaults to IMGUI_IMPL_WEBGPU_BACKEND_DAWN '--use-port=emdawnwebgpu' ports. (#8381, #8898) [@brutpitt, @trbabb]
instead of IMGUI_IMPL_WEBGPU_BACKEND_WGPU, if neither are specified. When using Emscripten 4.0.10+, backend now defaults to IMGUI_IMPL_WEBGPU_BACKEND_DAWN
(note: examples application were not updated yet) instead of IMGUI_IMPL_WEBGPU_BACKEND_WGPU, if neither are specified.
(note: examples application were not updated yet)
- Examples:
- GLFW+WebGPU: removed unnecessary ImGui_ImplWGPU_InvalidateDeviceObjects() call
during surface resize. (#8381)
----------------------------------------------------------------------- -----------------------------------------------------------------------

View file

@ -179,11 +179,7 @@ int main(int, char**)
int width, height; int width, height;
glfwGetFramebufferSize((GLFWwindow*)window, &width, &height); glfwGetFramebufferSize((GLFWwindow*)window, &width, &height);
if (width != wgpu_surface_width || height != wgpu_surface_height) if (width != wgpu_surface_width || height != wgpu_surface_height)
{
ImGui_ImplWGPU_InvalidateDeviceObjects(); // FIXME-OPT: Why doing this? This seems unnecessary and unoptimal.
ResizeSurface(width, height); ResizeSurface(width, height);
ImGui_ImplWGPU_CreateDeviceObjects();
}
// Start the Dear ImGui frame // Start the Dear ImGui frame
ImGui_ImplWGPU_NewFrame(); ImGui_ImplWGPU_NewFrame();