Original Post
Hi, I'm trying to implement framebuffers. I want to draw a picture into my framebuffer, copy it to a texture and use it as an inmput for my fragmentshader. However, when setting up my framebuffer I get the Errormessage : "Error missing attachment". My code looks like this: ... glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F_ARB,currentSizeX, currentSizeY, 0, GL_RGBA, GL_FLOAT, NULL); glGenFramebuffersEXT(1, &framebuf); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, framebuf); glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, depthMap, 0); glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT); if(glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT)==GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT) { std::cout << "Error missing attatchment" << std::endl; } ... Does anybody see an error or is anything missing? Any help on this is appreciated, Thx, Icebraker