Results 1 to 2 of 2

Thread: How does default ReadPixels work?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    2

    How does default ReadPixels work?

    Hello,

    I'm worried an ambiguous spec. about glReadPixels, glCopyTexImage2D and, glCopyTexSubImage2D.

    for example, I may use eglMakeCurrent as following and both drawSurface & readSurface are double-buffering.

    eglMakeCurrent(defualtDisplay, drawSurface, readSurface, glesContext);

    If I use glReadPixels, does it read from the front buffer of readSurface?
    In a GL sense, it's correct, but I think the glReadPixels of GLES reads from the current drawing surface(back buffer).
    What is correct?

    If the above readSurface is same as the drawSurface, how does it work?

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

    Re: How does default ReadPixels work?

    glReadPixels reads from the back buffer of a double buffered read surface. If readSurface and drawSurface are the same it will also wait for all pending draw operations to complete before reading the buffer contents.
    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

Similar Threads

  1. Why is default interpolation done this way?
    By AlexAtOSU in forum OpenCL
    Replies: 3
    Last Post: 07-20-2010, 06:31 AM
  2. ML_OPEN_XCODE_MODE default
    By jarno in forum OpenML Coding & Technical Issues
    Replies: 7
    Last Post: 03-21-2005, 05:32 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
  •