Help!!!

Hi all,
call glBindFramebufferEXT failed. The error code is GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT. Could someone tell me what will cause this problem, thx!

Here’s my code:
//render other object

//init glew
int err = glewInit();
//init fbo
glPushAttrib(GL_ALL_ATTRIB_BITS);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
GLenum status;
glGenFramebuffersEXT(1, &fb);
status = (GLenum) glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
// bind offscreen framebuffer (that is, skip the window-specific render target)
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb);
status = (GLenum) glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);//status is GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT

Well, you have no attachments attached for FBO - that is why you get incomplete or misssing attachment status for FBO. Use glCheckFramebufferStatus function only when you have attached all attachments.

To verify individual OpenGL function success use glGetError function.