Sign in to follow this  

Using PBO and FBO for pixel readback

Recommended Posts

spock83    100
I have an application where I do rendering and then read back the rendered image. Previously I used PBOs and framebuffers to read back the image, i.e.,



ptr = glMapBuffer(GL_PIXEL_PACK_BUFFER,pbo2);
//read back image
//swap pbo1 and pbo2 for next iteration

If I want to use FBO instead of framebuffers, do I need to create two renderbuffers to avoid stalls? The two renderbuffers will just replace the front and back buffers in the previous method.

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