From d1c5a66557b35f8ea473d33cf363c1b0ec46050d Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 12 Jan 2026 12:11:10 +0100 Subject: [PATCH] Backends: WebGPU: rework unsupported path into an assert. (#9155, #9156) --- backends/imgui_impl_wgpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_wgpu.cpp b/backends/imgui_impl_wgpu.cpp index c8722cd4a..e98e9f3ca 100644 --- a/backends/imgui_impl_wgpu.cpp +++ b/backends/imgui_impl_wgpu.cpp @@ -1078,7 +1078,7 @@ WGPUSurface ImGui_ImplWGPU_CreateWGPUSurfaceHelper(ImGui_ImplWGPU_CreateSurfaceI surface = wgpuInstanceCreateSurface(info->Instance, &surface_descriptor); } #else - fprintf(stderr, "'CreateWGPUSurfaceHelper' is not implemented for this platform\n"); + IM_ASSERT(0 && "Unsupported WebGPU native platform!"); #endif return surface; }