Merge pull request #2575 from RehkitzDev/master

added webgl bindFramebuffer
This commit is contained in:
gingerBill
2023-06-06 22:39:17 +01:00
committed by GitHub
+2 -2
View File
@@ -313,8 +313,8 @@ class WebGLInterface {
this.ctx.bindBuffer(target, bufferObj)
}
},
BindFramebuffer: (target, buffer) => {
// TODO: BindFramebuffer
BindFramebuffer: (target, framebuffer) => {
this.ctx.bindFramebuffer(target, framebuffer ? this.framebuffers[framebuffer] : null)
},
BindTexture: (target, texture) => {
this.ctx.bindTexture(target, texture ? this.textures[texture] : null)