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

QPainter::drawText in a QGLWidget leaves a shader program in effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.0
    • GUI: OpenGL
    • None
    • Mac OS X 10.6

    Description

      Starting with Qt 4.6, creating a QPainter in a QGLWidget's paintEvent method and calling QPainter::drawText calls glUseProgramObject_ARB, but does not unset the program before returning, causing all subsequent OpenGL drawing commands to fail spectacularly. Trying to work round this by calling glUseProgram(0) after calling drawText doesn't work because the next call to drawText won't reinstate the shader program.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            jerryh Jerry Huxtable
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes