PDA

View Full Version : copying texture to system framebuffer



john_connor
06-08-2016, 08:51 AM
hi,

im trying to use a FBO, but this time instead of renderbuffer objects i want to use textures
i dont get any errors on creation of the framebuffer (using glCheckFramebufferStatus(...)), so i assume there is no error
but when i try to copy the data from the framebuffer (using glBlitFramebuffer(...)), opengl reports an error: GL_INVALID_FRAMEBUFFER_OPERATION

how can i copy the data from a texture into the default framebuffer ?
or do i have to render a simple quad with that texture ?


EDIT:
nevermind, i actually overlooked anothe error message, framebuffer wasnt initialized correctly ...