Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot read GL_DEPTH_COMPONENT using QOpenGLWidget
QtWS25 Last Chance

Cannot read GL_DEPTH_COMPONENT using QOpenGLWidget

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 452 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alexander Maltsev
    wrote on last edited by
    #1

    Re: Cannot read GL_DEPTH_COMPONENT using QOpenGLWidget

    Hi all, I have similar problem. The depth buffer does not seem to be accessible outside paintGL() in QOpenGLWidget. The glReadPixels for GL_DEPTH_COMPONENT delivers plausible z value if I try to invoke it within paintGL(). But the same call fails outside of paintGL() (GLGetError returns GL_INVALID_OPERATION which means no depth buffer)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alexander Maltsev
      wrote on last edited by
      #2

      The issue is solved. See https://www.opengl.org/discussion_boards/showthread.php/200495-Cannot-read-GL_DEPTH_COMPONENT-using-QOpenGLWidget-outside-of-paintGL()-function?p=1290643#post1290643 for explanations

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved