Qt Forum

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

    Is there anything opposite to InitializeGL().. something like deleteGl()?

    General and Desktop
    2
    2
    828
    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.
    • A
      Andrew last edited by

      Is there anything which is exactly opposite to InitializeGL()? that we can call..?

      Actually I am having particular requirement that on occurrence of an event I should stop drawing in PainGL().

      I tried makeCurrent() but it still keeps on drawing, and gives seg-fault in QGLWidget::glDraw() while swapping buffers.

      How do I go about it?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I'm not aware of such a function, but you could use a boolean flag to check at the top of paintGL.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post