Jump to content
  • Advertisement
Sign in to follow this  
O-san

FBO problem

This topic is 3884 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 get this run-time error when trying to initialize my FBO: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. The compilation and linking process passes without any problems. I have checked my declaration and calling points and as far as I can see they match up. This function call is what causing the error:
glGenFramebuffersEXT(1, &mID);

And this is the declaration:
PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT = NULL;
glGenFramebuffersEXT=(PFNGLGENFRAMEBUFFERSEXTPROC)wglGetProcAddress("glGenFramebuffersEXT");


I suspect that I will get the same error for every FBO function. But it halts at the first error. Any help appreciated!

Share this post


Link to post
Share on other sites
Advertisement
Could be that your graphics card doesn't support FBO's. If you're confident it does then update your drivers to latest just in case ..

Also I highly recommend using a library like GLEW for handling your extensions. The nice thing about GLEW in particular is that not only is it cross platform compatible but you can consult the library whether a particular version of GL is supported. This makes it easier to write fallbacks for advanced features which wont be supported by older GPU's.

Share this post


Link to post
Share on other sites
I am confident that my graphics card supports FBO's (I've had FBO's in older projects). Anyway… it works with glee so I must have done something wrong obviously. I can’t exactly figure out what though.

Thanks everyone!

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!