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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change