aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2024-01-07 16:49:51 +0100
committerDamian Tarnawski <gthetarnav@gmail.com>2024-01-07 16:49:51 +0100
commit2017ebc1b5ce42d6cf546506ed26d562d8ced8cb (patch)
tree306b999bc581388b952f7e8665df7ef9b7bf05e0
parentda56a75ad61bfeeab325358e95a58d429ba8ec30 (diff)
Fix copyTexSubImage2D and copyTexSubImage3D method calls
-rw-r--r--vendor/wasm/js/runtime.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js
index d30a44d68..1eeb01cf2 100644
--- a/vendor/wasm/js/runtime.js
+++ b/vendor/wasm/js/runtime.js
@@ -395,7 +395,7 @@ class WebGLInterface {
this.ctx.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
},
CopyTexSubImage2D: (target, level, xoffset, yoffset, x, y, width, height) => {
- this.ctx.copyTexImage2D(target, level, xoffset, yoffset, x, y, width, height);
+ this.ctx.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
},
@@ -855,7 +855,7 @@ class WebGLInterface {
CopyTexSubImage3D: (target, level, xoffset, yoffset, zoffset, x, y, width, height) => {
this.assertWebGL2();
- this.ctx.copyTexImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
+ this.ctx.copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
},
/* Programs and shaders */
@@ -1038,7 +1038,7 @@ class WebGLInterface {
},
BindSampler: (unit, sampler) => {
this.assertWebGL2();
- this.ctx.bindSampler(unit, this.samplers[Sampler]);
+ this.ctx.bindSampler(unit, this.samplers[sampler]);
},
SamplerParameteri: (sampler, pname, param) => {
this.assertWebGL2();