Sign in to follow this  
brm

store/restore back buffer

Recommended Posts

I wrote a GUI that relies on back buffer information remaining after flipping the backbuffer to the frontbuffer. However, it seems that on several computers, the front- and backbuffer are swapped. I would like to find a way to still use my GUI by storing the backbuffer information before 'flip', and after it, restoring it again. I tried using glReadPixels and glDrawPixels, but that method turned out too slow, and now I am wondering if there is any way to do this in another way?

Share this post


Link to post
Share on other sites
You could try drawing everything to a framebuffer object (FBO) and do the blitting to the main framebuffer yourself. Graphics hardware is, as far as I know, not optimized for reading back pixels, as you have already discovered.

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