aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-01-06 22:28:24 +0100
committerDamian Tarnawski <gthetarnav@gmail.com>2024-01-06 22:28:24 +0100
commit0580eebd2aea0e6609c7a0a004fb2dcf5b13d70e (patch)
tree39b19088f230f9e8581029eb302e59bf4791fc61
parent909a5016ee31803640a4cb0843cd74d55f3c0451 (diff)
Pass `height` to `webgl.readPixels`
-rw-r--r--vendor/wasm/js/runtime.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js
index 1508d7a7c..40ae405d7 100644
--- a/vendor/wasm/js/runtime.js
+++ b/vendor/wasm/js/runtime.js
@@ -669,7 +669,7 @@ class WebGLInterface {
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) => {
this.ctx.renderbufferStorage(target, internalformat, width, height);