Why are PBuffers double-buffered?

Just wondering why PBuffers are double-buffered?

As far as I can tell, the use case for PBuffers are to render into them and then either:

a) read the pixels out with glReadPixels()
b) Copy the pbuffer to a texture with glCopyTexImage2D()
c) Bind the pbuffer to a texture with eglBindTexImage()

All of these functions seem to operate on the back buffer, so what’s the point in having pbuffers double buffered? Seems like a waste of memory to have two buffers when you only ever use one. I don’t think I’ve ever had to call eglSwapBuffers() on a pbuffer before?

Pbuffers are not double-buffered. They have a back buffer but no front buffer.

Here is another thread related to the same question:

Yup… Didn’t search hard enough.

Good news, thanks.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.