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()
QtWS25 Last Chance

Correct usage of QOpenGLxxxx bind() and release()

Scheduled Pinned Locked Moved General and Desktop
openglbindrelease
1 Posts 1 Posters 738 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.
  • G Offline
    G Offline
    garfunkheul
    wrote on 14 Sept 2015, 11:35 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

    1/1

    14 Sept 2015, 11:35

    • Login

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