aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryuukk <44361234+ryuukk@users.noreply.github.com>2021-12-15 06:12:26 +0100
committerGitHub <noreply@github.com>2021-12-15 06:12:26 +0100
commitd0240b8981068b3f2bcbecae51d1ca8246e0113a (patch)
treeb8920e288d390d668cb50300fb10cf45d0cb5234
parent4423bc0706a6a1a64cf419720fd65bc723fdf58a (diff)
[WASM] Added missing zoffset parameters to some gl functions
-rw-r--r--vendor/wasm/WebGL/runtime.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/wasm/WebGL/runtime.js b/vendor/wasm/WebGL/runtime.js
index 18b540b5c..3dc5186ca 100644
--- a/vendor/wasm/WebGL/runtime.js
+++ b/vendor/wasm/WebGL/runtime.js
@@ -672,9 +672,9 @@ class WebGLInterface {
this.ctx.texImage3D(target, level, internalformat, width, height, depth, border, format, type, null);
}
},
- TexSubImage3D: (target, level, xoffset, yoffset, width, height, depth, format, type, size, data) => {
+ TexSubImage3D: (target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, size, data) => {
this.assertWebGL2();
- this.ctx.texSubImage3D(target, level, xoffset, yoffset, width, height, depth, format, type, this.mem.loadBytes(data, size));
+ this.ctx.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, this.mem.loadBytes(data, size));
},
CompressedTexImage3D: (target, level, internalformat, width, height, depth, border, imageSize, data) => {
this.assertWebGL2();
@@ -684,12 +684,12 @@ class WebGLInterface {
this.ctx.compressedTexImage3D(target, level, internalformat, width, height, depth, border, null);
}
},
- CompressedTexSubImage3D: (target, level, xoffset, yoffset, width, height, depth, format, imageSize, data) => {
+ CompressedTexSubImage3D: (target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data) => {
this.assertWebGL2();
if (data) {
- this.ctx.compressedTexSubImage3D(target, level, xoffset, yoffset, width, height, depth, format, this.mem.loadBytes(data, imageSize));
+ this.ctx.compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, this.mem.loadBytes(data, imageSize));
} else {
- this.ctx.compressedTexSubImage3D(target, level, xoffset, yoffset, width, height, depth, format, null);
+ this.ctx.compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, null);
}
},
@@ -1031,4 +1031,4 @@ class WebGLInterface {
};
-export {WebGLInterface}; \ No newline at end of file
+export {WebGLInterface};