Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12040

Unexpected use of Q_WGL in ~QGLWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.6.3
    • GUI: OpenGL
    • None
    • Windows 7 Professional x64
    • 48469ecd3f2918d16ccfacb5d65f3a5e0bbfa8d8

    Description

      Hi,

      I found this while investigating a completely different issue in our Windows application, but thought I'd raise it with you.

      Looking at the destructor for QGLWidget in src/opengl/qgl.cpp, in Qt4.6.3, I noticed the code:

      #if defined(Q_WGL)
      delete d->olcx;
      #endif

      However, all the other references to the member variable olcx that I can see are predicated on the #define Q_WS_WIN.

      I don't see any other reference to Q_WGL in any source or associated files in Qt4.6.3.

      Should that statement be compiled into Windows builds?

      Thanks!

      Mark

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            markfinal Mark Final
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes