Jump to content
  • Advertisement
Sign in to follow this  
hoory

OpenGL OpenGL FBO problem

This topic is 3558 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to use fbo to implement rtt but in my code fbo seems do nothing to the binded texture. I download a fbo demo use GLUT framework. The demo ran ok on my computer so the ogl driver for my video card is ok. But when I copy the fbo related code from the demo to my framework the problem came out again. Is there any limitation about creating window for opengl when using fbo?

Share this post


Link to post
Share on other sites
Advertisement
FBO can be tricky but there's a simple way to check correctness of your code: verify that glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) returns GL_FRAMEBUFFER_COMPLETE_EXT (=0x8CD5).

If it returns any other value, you did something wrong somewhere.

Share this post


Link to post
Share on other sites
Thanks! My problem has been addressed. While perform rendering using fbo the texture which is binded to the fbo can not be binded to gl, otherwise, the fbo can not write anything to the texture.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!