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. Correct usage of QOpenGLxxxx bind() and release()
Qt 6.11 is out! See what's new in the release blog

Correct usage of QOpenGLxxxx bind() and release()

Scheduled Pinned Locked Moved General and Desktop
openglbindrelease
1 Posts 1 Posters 1.0k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    garfunkheul
    wrote on last edited by garfunkheul
    #1

    Hi,

    I saw into QOpenGL examples two different ways to bind/release QOpenGL objects:

    The first one, bind() a QOpenGLShaderProgram at the beginning of paintGL() and releases it at the end.

    The second one bind() the QOpenGLShaderProgram init initializeGL() and never releases it.

    So which implementation is the good one?

    What about QOpenGLTexture? Do I need to release() once it has been bound?

    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