Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Correct usage of QOpenGLxxxx bind() and release()

    General and Desktop
    opengl bind release
    1
    1
    553
    Loading More Posts
    • 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
      garfunkheul last edited by garfunkheul

      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 Reply Quote 0
      • First post
        Last post