Nsight fails to enter frame debugging mode when using the following call to detach a texture from a framebuffer: glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENTi, 0, 0, 0), because textarget is equal to 0. Obviously, using the correct textarget fix the problem.
However, this is a valid call according to the opengl specification that says:
“If texture is zero, any image or array of images attached to the attachment point named by attachment is detached. Any additional parameters (level, textarget, and/or layer) are ignored when texture is zero.”
Thanks for your great work!