diff --git a/filament/backend/src/webgpu/WebGPUDriver.cpp b/filament/backend/src/webgpu/WebGPUDriver.cpp index 009eb73b6d..05e1959374 100644 --- a/filament/backend/src/webgpu/WebGPUDriver.cpp +++ b/filament/backend/src/webgpu/WebGPUDriver.cpp @@ -1497,7 +1497,7 @@ void WebGPUDriver::readPixels(Handle sourceRenderTargetHandle, c mReadPixelMapsCounter.startTask(); userData->buffer.MapAsync( - wgpu::MapMode::Read, 0, bufferSize, wgpu::CallbackMode::AllowProcessEvents, + wgpu::MapMode::Read, 0, bufferSize, wgpu::CallbackMode::AllowSpontaneous, [](wgpu::MapAsyncStatus status, const char* message, UserData* userdata) { std::unique_ptr data(static_cast(userdata)); if (UTILS_LIKELY(status == wgpu::MapAsyncStatus::Success)) {