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

No valid OpenGL context despite QOpenGLContext.create and QOpenGLContext.makeCurrent both returning true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.0
    • GUI: OpenGL, Other
    • None
    • Windows Version 10.0.18362 Build 18362
      VirtualBox 6.0.10 with guest additions
      Qt 5.13.0 MinGW 64-bit
    • Windows

    Description

      The following was found on a clean installation of Windows 10 running on VirtualBox. There is a minimal example attached.

      Issue:

      After creating and making a QOpenGLContext current, there is no actual valid OpenGL context.

      Expected:

      Running the example program will display a label with two copies of the OpenGL context version.

      Actual:

      The label only contains the version of the context returned by Qt. (i.e. glGetString(GL_VERSION) returns an empty string.

       

      I've run the program on a couple of different operating system with the following results:

       

      OS Qt Output
      OSX 10.14 Desktop Qt 5.13.0 clang 64bit 2.1, 2.1 INTEL-12.9.22
      Windows 10 Version 10.0.18362 Build 18362 Desktop Qt 5.13.0 MinGW 64-bit 4.6, 4.6.0 NVIDIA 431.36
      Windows 10 Version 10.0.18362 Build 18362 Virtual Machine Qt 5.13.0 MinGW 64-bit  3.0,
      Ubuntu 18.04 LTS Virtual Machine Desktop Qt 5.13.0 GCC 64bit 3.3, 3.3 (Core Profile) Mesa 18.2.2

       

       

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            christopherpezley Christopher Pezley
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes