Hello,
Is it possible to use glFramebufferTexture to detach a texture? I get an INVALID_VALUE error with the following:
glFramebufferTexture(FRAMEBUFFER, attachPoint, 0, 0);
But if I attach and detach with glFramebufferTexture2D it works:
glFramebufferTexture2D(FRAMEBUFFER, attachPoint, TEXTURE_2D, 0, 0);
I’m under the impression that both should work; the spec states:
The remaining comments in this section apply to all forms of FramebufferTexture*.
If texture is zero, any image or array of images attached to the attachment point named by attachment is detached…
Thanks,
Patrick