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

[QOpenGLWidget] OpenGL state corruption with latest NVIDIA drivers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0, 6.5.3, 6.8.3, 6.9.0
    • None
    • NVIDIA graphics card with latest drivers (572.xx) required
    • Windows

    Description

      The issue can be reproduced with a simple QOpenGLWidget-based app (see the attached main.cpp file).

      In the example, the GL_DEPTH_WRITEMASK mask is queried in every paint event. Starting with Qt 6.4.0, the value of the mask unexpectedly switches from GL_TRUE (initial value in OpenGL) to GL_FALSE.

      Qt 6.3.2 and older versions are not affected.

      If main.cpp is compiled and the program executed, the following output is reported to the terminal:
       

      Qt 6.3.2 (and older)
      GOOD!
      GOOD!
      GOOD!
      Qt 6.4.0 (and newer)
      GOOD!
      GOOD!
      GL state went bad!

      The issue manifests with the latest NVIDIA drivers (e.g. 572.60), but it does not with older versions (e.g. 560.76).

      Attachments

        1. CMakeLists.txt
          0.3 kB
        2. main.cpp
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            christian.aguilera.foundry Christian Aguilera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes