Revision d34a6ad...

Go back to digest for 14th October 2012

Features in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Add support for OpenGL in VirtualBox

OpenGL is properly working if there is a direct rendering context.
If LIBGL_ALWAYS_INDIRECT is set VirtualBox falls back to Mesa's software
rasterizer. So in order to get OpenGL the driver is now whitelisted in
the opengltest.

GLPlatform is extended to recognize the VirtualBox driver and has new
methods to report whether it is a virtual machine and VirtualBox. The
detection is rather limited as we don't get access to the underlying
hardware, so we do not know whether the features are really supported.
We need to trust the driver here in announcing the right extensions.

The driver does not provide glxQueryDrawable although it is part of
GLX 1.3. A hack is added in the glxbackend to set the function pointer to
NULL. This can unfortunately not be done in glxResolveFunctions() as
QueryDrawable seems not to be provided by an extension (at least not
listed in the OpenGL registry) and getProcAddress resolves a function but
it only prints an OpenGL Warning to stderr.

As a note: the driver reports that it is using XSHM for

REVIEW: 106821

File Changes

Modified 5 files
  •   kwin/glxbackend.cpp
  •   kwin/workspace.cpp
  •   kwin/libkwineffects/kwinglplatform.cpp
  •   kwin/libkwineffects/kwinglplatform.h
  •   kwin/opengltest/opengltest.cpp
5 files changed in total