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

Add an API to create QOpenGLContext from an existing native handle

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • None
    • GUI: OpenGL
    • None
    • e7056a8969cf9445ff84c7362137f792ef207ae2, 27dc07fa050b5f216516debcd11802530a0c2d79, 0b5c0ad2ef49a262de5bdb18a3cdab30ae6772a2, af1e32426c50694c0e4c1c292aa5eeee3b38c7bc

    Description

      There has to be a way to create a QOpenGLContext with an existing native handle, for example a new static function taking a void*. On platforms that support it, this would result in skipping the actual eglCreateContext and similar calls and instead using the provided handle.

      Note that steps like updating the QOpenGLContext's format() must be done also in this case. If dummy windows are needed for this, those must be created with the proper config queried from the provided context.

      As for the QPA interface, the cleanest way would most likely be to provide an overload to createPlatformOpenGLContext taking a void*.

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes