Browse Source

wgpu: fix mode which is u64 not unwrapping big int

Laytan Laats 6 tháng trước cách đây
mục cha
commit
1223b3e260
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      vendor/wgpu/wgpu.js

+ 1 - 0
vendor/wgpu/wgpu.js

@@ -1365,6 +1365,7 @@ class WebGPUInterface {
 			 */
 			wgpuBufferMapAsync: (bufferIdx, mode, offset, size, callbackInfoPtr) => {
 				const buffer = this.buffers.get(bufferIdx);
+				mode   = this.unwrapBigInt(mode);
 				offset = this.unwrapBigInt(offset);
 				size   = this.unwrapBigInt(size);