webgpu: fix index buffer handle allocation (#9379)

Handle allocation was using HwIndexBuffer, which is much smaller
than WebGPUIndexBuffer. This can lead to memory corruption.
This commit is contained in:
Powei Feng
2025-10-29 17:27:38 +00:00
committed by GitHub
parent 629f35f5f7
commit df453dab89
+1 -1
View File
@@ -339,7 +339,7 @@ Handle<HwTimerQuery> WebGPUDriver::createTimerQueryS() noexcept {
}
Handle<HwIndexBuffer> WebGPUDriver::createIndexBufferS() noexcept {
return allocHandle<HwIndexBuffer>();
return allocHandle<WebGPUIndexBuffer>();
}
Handle<HwTexture> WebGPUDriver::createTextureViewS() noexcept {