Review Request 115952: [kinfocenter] Add support for OpenGL running on Wayland

Martin Gräßlin mgraesslin at
Sat Feb 22 10:34:35 UTC 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Plasma and David Stephen Hubner.

Repository: kde-workspace


[kinfocenter] Add support for OpenGL running on Wayland

The X11 specific code is only executed on xcb platform. For detecting
OpenGL on Wayland we don't do the native calls ourself, but use Qt
functionality. We know that on Wayland Qt will use egl, so to simplify
we can just use an QOpenGLContext. That code would also work for xcb,
but Qt uses either glx or egl compile time switched, so it's easier to
just keep the existing and working glx and egl implementation for X11.

As Qt makes it easy to request both core and compatibility profile we
try all of that:
* normal (nothing specified)
* core
* compatibility

The X11 code should also be extended in that direction. Unfortunately
I couldn't test it as the mesa version I'm currently running is only
providing OpenGL 3.0.


  kinfocenter/Modules/opengl/opengl.cpp 601337f071452eca7a3add127e8e1ff1586bbef0 



File Attachments

OpenGL module on Wayland


Martin Gräßlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Plasma-devel mailing list