Original Post
I have set a frame buffer object with a color attachment and depth attachment as textures. All worked fine but when I try to read back (glGetTexImage) the texture (color attachment) pixels it returns all black. I also try to read the pixels from the binded read buffer witch I've set as being the same as the color attachment. Furthermore, i render a quad with the texture binded and it works fine. My questios is why can't I read back the pixels. Texture creation: glBindTexture(GL_TEXTURE_2D, textures); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16, width, height, 0, GL_RGBA, GL_FLOAT, NULL); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, attachments, GL_TEXTURE_2D, textures, 0); Texture fetch: glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, textures); glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_FLOAT, pixels); glDisable(GL_TEXTURE_2D); Thanks! João Barbosa