• Advertisement
Sign in to follow this  

store/restore back buffer

This topic is 3026 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 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
Advertisement
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
Sign in to follow this  

  • Advertisement