From df453dab89d8a10ec22f835f14b5906f05081bd5 Mon Sep 17 00:00:00 2001 From: Powei Feng Date: Wed, 29 Oct 2025 17:27:38 +0000 Subject: [PATCH] webgpu: fix index buffer handle allocation (#9379) Handle allocation was using HwIndexBuffer, which is much smaller than WebGPUIndexBuffer. This can lead to memory corruption. --- filament/backend/src/webgpu/WebGPUDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/backend/src/webgpu/WebGPUDriver.cpp b/filament/backend/src/webgpu/WebGPUDriver.cpp index 796ece2f9f..3724c4a347 100644 --- a/filament/backend/src/webgpu/WebGPUDriver.cpp +++ b/filament/backend/src/webgpu/WebGPUDriver.cpp @@ -339,7 +339,7 @@ Handle WebGPUDriver::createTimerQueryS() noexcept { } Handle WebGPUDriver::createIndexBufferS() noexcept { - return allocHandle(); + return allocHandle(); } Handle WebGPUDriver::createTextureViewS() noexcept {