Backends: WebGPU: rework unsupported path into an assert. (#9155, #9156)

This commit is contained in:
ocornut
2026-01-12 12:11:10 +01:00
parent f5384544cb
commit d1c5a66557
+1 -1
View File
@@ -1078,7 +1078,7 @@ WGPUSurface ImGui_ImplWGPU_CreateWGPUSurfaceHelper(ImGui_ImplWGPU_CreateSurfaceI
surface = wgpuInstanceCreateSurface(info->Instance, &surface_descriptor); surface = wgpuInstanceCreateSurface(info->Instance, &surface_descriptor);
} }
#else #else
fprintf(stderr, "'CreateWGPUSurfaceHelper' is not implemented for this platform\n"); IM_ASSERT(0 && "Unsupported WebGPU native platform!");
#endif #endif
return surface; return surface;
} }