Fix WebGLInterface function names

This commit is contained in:
Damian Tarnawski
2024-01-07 16:49:12 +01:00
parent 0580eebd2a
commit da56a75ad6

View File

@@ -791,7 +791,7 @@ class WebGLInterface {
/* Framebuffer objects */
BlitFramebuffer: (srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) => {
this.assertWebGL2();
this.ctx.glitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
this.ctx.blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
},
FramebufferTextureLayer: (target, attachment, texture, level, layer) => {
this.assertWebGL2();
@@ -822,7 +822,7 @@ class WebGLInterface {
TexStorage3D: (target, levels, internalformat, width, height, depth) => {
this.assertWebGL2();
this.ctx.texStorage3D(target, level, internalformat, width, heigh, depth);
this.ctx.texStorage3D(target, levels, internalformat, width, height, depth);
},
TexImage3D: (target, level, internalformat, width, height, depth, border, format, type, size, data) => {
this.assertWebGL2();