mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-02 03:02:37 +00:00
Pass height to webgl.readPixels
This commit is contained in:
2
vendor/wasm/js/runtime.js
vendored
2
vendor/wasm/js/runtime.js
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user