Results 1 to 3 of 3

Thread: Why are PBuffers double-buffered?

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    23

    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?

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: Why are PBuffers double-buffered?

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

    Here is another thread related to the same question:
    viewtopic.php?f=13&t=970
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    23

    Re: Why are PBuffers double-buffered?

    Yup... Didn't search hard enough.

    Good news, thanks.

Similar Threads

  1. Offscreen rendering with pbuffers in es 2.0
    By freber in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 09-18-2007, 12:15 AM
  2. Tiled pbuffers and checkpointing
    By pfirmst in forum Cross API and window system integration
    Replies: 0
    Last Post: 03-10-2006, 09:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •