V-man
03-07-2008, 10:48 AM
Looks like on my nVidia driver (156.xx), it spit out GL_INVALID_ENUM
when I want to dettach a texture like this.
//id is a previously generated and the framebuffer is perfectly fine
//and usable
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, id);
//I want to unbind the texture from the FBO
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, 0, 0, 0);
It doesn't like the textarget=0 or textureID=0?
Can someone verify? I don't think it should be generating an error according to the spec.
when I want to dettach a texture like this.
//id is a previously generated and the framebuffer is perfectly fine
//and usable
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, id);
//I want to unbind the texture from the FBO
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, 0, 0, 0);
It doesn't like the textarget=0 or textureID=0?
Can someone verify? I don't think it should be generating an error according to the spec.