Jump to content
  • Advertisement
Sign in to follow this  

Quick beginner question about accumulation buffer

This topic is 3264 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

Does the accumulation buffer need any special initialization in order for me to use it(I'm using SDL)? Because when I used glGetIntegerv( GL_ACCUM_RED_BITS, &NumBits) and for GL_ACCUM_GREEN_BITS, etc, I'm getting zero for NumBits, so I guess that means the accumulation buffer is not supported on my graphics card? Can someone correct or verify the above?

Share this post

Link to post
Share on other sites
SDL does not allocate an accumulation buffer by default. You have to tell the SDL to allocate one thanks to the SDL_GL_SetAttribute function with the following tokens :

The value is in bits, so you have to call these lines for 16-bit accumulation buffer :


If it does not work, it either means you called these lines at the wrong time or that your graphics card really does not support accumulation buffers. The latter case is less likely to happen because most drivers if not all support accumulation buffer, be it in software in the worst case (which is also an issue, but out of the scope of this thread).

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!