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

Wayland QOpenGLContext->setNativeHandle() will still create a new GL context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.14.1
    • QPA: Wayland
    • None
    • Linux/Wayland

    Description

      I'm attempting to render QML (using QQuickRenderControl based heavily on https://felgo.com/doc/qt/qtquick-rendercontrol-example/) within an external OpenGL context and have had success running with X11/GLX and Windows/WGL.

      I'm attempting to test with Wayland by passing a QEGLNativeContext to QOpenGLContext->setNativeHandle() and it seems from my cursory look through the Wayland backend, that QWaylandGLContext does not support wrapping a native context unlike QGLXContext.  This means a subsequent call to QOpenGLContext->create() will create a new OpenGL context which is not what I want.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-82528
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              ystreet00 Matthew Waters
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change