Mir

Comment 0 for bug 1580277

Revision history for this message
Gerry Boland (gerboland) wrote :

Mir's GL implementation appears to support only GLES2. On Desktops, it is more likely that Open GL is available and reliable. Certainly Qt expects OpenGL on the desktop, more so than GLES2.

QtMir currently has Mir choose a GL context suitable for it, and Mir allows it to specify depth & stencil buffers. Mir always returns a GLES2 context, that Qt has to work with. Thanks for MESA being forgiving, Qt can perform GL with this GLES2 context ok, most of the time.

But Qt should be able to specify GL or GLES2 at least, so it can get a proper OpenGL context.

Qt has a lot of internal logic to choose a correct context for itself.
http://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/eglconvenience/qeglconvenience_p.h?h=dev#n75
see the "chooseConfig" method of the QEGLConfigChooser.

It would be ideal if Mir supported a callback that could allow the third party to choose the correct config for its renderer.