Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
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
- relates to
-
QTBUG-37944 Make the render control public
-
- Closed
-
For Gerrit Dashboard: QTBUG-37552 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81052,7 | Add public and QPA APIs for adapting existing OpenGL contexts | dev | qt/qtbase | Status: ABANDONED | +1 | 0 |
82391,1 | Add public and QPA APIs for adapting existing OpenGL contexts | stable | qt/qtbase | Status: ABANDONED | 0 | 0 |
82392,24 | Add public and QPA APIs for adapting existing OpenGL contexts | dev | qt/qtbase | Status: MERGED | -1 | 0 |
84047,3 | Support adopting an existing EGLContext in eglfs and xcb | dev | qt/qtbase | Status: MERGED | -1 | 0 |