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

QOpenGLWidget becomes black after suspend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.11.1
    • GUI: OpenGL
    • None
    • Windows 10 x64, mingw64 with gcc 8.2,
      Renderer: NVIDIA Corporation GeForce GTX 780/PCIe/SSE2
      OpenGL Version: 4.6.0 NVIDIA 398.36
      Shader version: 4.60 NVIDIA
    • Windows

      After system resume from suspend my application become completely black, even menu toolbar and status bar.

      I am using QOpenGLWidget based class as a central widget in MainWindow. Minimum example to reproduce the issue is attached.

      Note if I delete glEnable( GL_DEPTH_TEST ); problem will disappear.

       

       

       

       

       

       

        1. glwindow.cpp
          0.4 kB
          Evgeniy Vlasov
        2. glwindow.h
          0.3 kB
          Evgeniy Vlasov
        3. main.cpp
          0.2 kB
          Evgeniy Vlasov
        4. mainwindow.cpp
          0.3 kB
          Evgeniy Vlasov
        5. mainwindow.h
          0.3 kB
          Evgeniy Vlasov
        6. mainwindow.ui
          2 kB
          Evgeniy Vlasov
        7. sleep_test.pro
          1 kB
          Evgeniy Vlasov
        8. after_suspend.PNG
          3 kB
          Evgeniy Vlasov
        9. before_suspend.PNG
          3 kB
          Evgeniy Vlasov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            evgeniyvlasov Evgeniy Vlasov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes