소스 검색

Pass `height` to `webgl.readPixels`

Damian Tarnawski 1 년 전
부모
커밋
0580eebd2a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      vendor/wasm/js/runtime.js

+ 1 - 1
vendor/wasm/js/runtime.js

@@ -669,7 +669,7 @@ class WebGLInterface {
 
 
 
 
 			ReadnPixels: (x, y, width, height, format, type, bufSize, data) => {
 			ReadnPixels: (x, y, width, height, format, type, bufSize, data) => {
-				this.ctx.readPixels(x, y, width, format, type, this.mem.loadBytes(data, bufSize));
+				this.ctx.readPixels(x, y, width, height, format, type, this.mem.loadBytes(data, bufSize));
 			},
 			},
 			RenderbufferStorage: (target, internalformat, width, height) => {
 			RenderbufferStorage: (target, internalformat, width, height) => {
 				this.ctx.renderbufferStorage(target, internalformat, width, height);
 				this.ctx.renderbufferStorage(target, internalformat, width, height);