Backends: WebGPU: rework unsupported path into an assert. (#9155, #9156)
Some checks failed
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
scheduled / scheduled (push) Has been cancelled

This commit is contained in:
ocornut
2026-01-12 12:11:10 +01:00
parent f5384544cb
commit d1c5a66557

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;
} }