소스 검색

wgpu: fix mode which is u64 not unwrapping big int

Laytan Laats 6 달 전
부모
커밋
1223b3e260
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);