Browse Source

Merge pull request #2575 from RehkitzDev/master

added webgl bindFramebuffer
gingerBill 2 years ago
parent
commit
7ce1386d1a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vendor/wasm/js/runtime.js

+ 2 - 2
vendor/wasm/js/runtime.js

@@ -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)