# FBO problem

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

## 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;


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

##### Share on other sites
Does it work with GLee?

##### Share on other sites
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 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!

1. 1
2. 2
3. 3
4. 4
5. 5
Rutin
18

• 11
• 12
• 9
• 12
• 37
• ### Forum Statistics

• Total Topics
631420
• Total Posts
2999990
×