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

QOpenGLWidget becomes black after suspend

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

    Description

      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.

       

       

       

       

       

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes