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