[Qt5-feedback] Custom OpenGL Context and Qt 5

Martin Gräßlin mgraesslin at kde.org
Fri May 13 16:55:40 CEST 2011


Hi,

the OpenGL requirment for Qt 5 raised some concerns/questions for our use of OpenGL in the 
KDE Plasma Compositor (KWin). Currently we do not use the QtOpenGL module as we need to 
create the context ourself using the XCompositeOverlayWindow. Up to now we could be sure 
that there is only our own context and we only make it current on creation and we do not 
ensure that our context is current.

My assumption is that this will not work any more with Qt 5. Is this the case? If yes, how will 
you ensure to not break random applications using OpenGL not over QtOpenGL module?

KWin supports both OpenGL/GLX and OpenGL ES/EGL as compositing backends starting from 
our next release and we will promote the usage of the EGL backend. Is it still possible to use 
OpenGL ES in case Qt is using desktop GL (or vice versa)? Or is there a way to tell Qt which 
backend to use? If not can we know if Qt uses desktop GL or OpenGL ES?

And I dare to abuse this mailing list for a feature wish: creating a QGLContext from a given 
"normal" GLContext. This would allow us to use the QtOpenGL module.

Cheers and good luck with Qt 5 as I have not dared to enforce OpenGL compositing yet ;-)

Martin Gräßlin
KWin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt.nokia.com/pipermail/qt5-feedback/attachments/20110513/8b3861c8/attachment.bin 


More information about the Qt5-feedback mailing list