(target, w, h, internalFormat, format, type, param)
| 649 | } |
| 650 | |
| 651 | function resizeFBO(target, w, h, internalFormat, format, type, param) { |
| 652 | let newFBO = createFBO(w, h, internalFormat, format, type, param); |
| 653 | copyProgram.bind(); |
| 654 | gl.uniform1i(copyProgram.uniforms.uTexture, target.attach(0)); |
| 655 | blit(newFBO); |
| 656 | return newFBO; |
| 657 | } |
| 658 | |
| 659 | function resizeDoubleFBO(target, w, h, internalFormat, format, type, param) { |
| 660 | if (target.width === w && target.height === h) return target; |
no test coverage detected