Pass height to webgl.readPixels

This commit is contained in:
Damian Tarnawski
2024-01-06 22:28:24 +01:00
parent 909a5016ee
commit 0580eebd2a

View File

@@ -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);