Sign in to follow this  
Icebraker

Problem with FBOs

Recommended Posts

Icebraker    122
Hi, I"m trying to get Framebuffer-objects running for my project. I"ve programmed to following code so far(i ist size of the image): glGenFramebuffersEXT(1, &fbId); glGenRenderbuffersEXT(1, &renderId); glGenTextures(1, &texId); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbId); glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, renderId); glBindTexture(GL_TEXTURE_2D, texId); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB32F_ARB, i, i); glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT,GL_RGBA8,GL_RENDERBUFFER_EXT,renderId); glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT0_EXT,GL_TEXTURE_2D,texId,0); checkFBO(glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT)); However, glCheckFramebufferStatusEXT does not return GL_FRAMEBUFFER_COMPLETE_EXT. According to glxinfo my Card/System does support the FBO extension and no errors occur at compiletime. Did I forget some important commands to setup the framebuffer? Thx, Icebraker

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this