I get an error GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT after I try to create a framebuffer that renders to a texture. I can\'t figure out what is wrong, any help is gr
It is likely that the texture is incomplete. The default MIN_FILTER for a texture specifies mipmapping, but you've provided only for Texture Level 0, so the texture itself is incomplete.
Add calls to glTexParamter to set the MIN_FILTER to one of the non-mipmapped modes.