瀏覽代碼

Merge pull request #4989 from SlateyDev/patch-1

Fix depth stencil not working on wgpu wasm_js build
Laytan 6 月之前
父節點
當前提交
cc61fdd90e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vendor/wgpu/wgpu.js

+ 1 - 1
vendor/wgpu/wgpu.js

@@ -528,7 +528,7 @@ class WebGPUInterface {
 			return undefined;
 			return undefined;
 		}
 		}
 
 
-		const off = this.struct(ptr);
+		const off = this.struct(start);
 
 
 		return {
 		return {
 			view:              this.textureViews.get(this.mem.loadPtr(off(4))),
 			view:              this.textureViews.get(this.mem.loadPtr(off(4))),