Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for headless rendering on Linux through EGL. #1997
This PR adds support for headless ( i.e no requirement to run an X server ) rendering on Linux through
This enables Linux-based command-line Cinder applications to get access to an OpenGL Core Profile context in order to achieve hardware accelerated rendering even when no physical display is attached.
Mesa doesn't implement, as of yet, the full functionality for this extension so for now this should work only on NVidia hardware with any recent driver version.
In order to enable this rendering path you would need to configure Cinder with :
When this path is enabled there will be no support for mouse / keyboard input but everything else should work the same as in a normal windowed app ( with no actual window running in this case but instead an
A local copy of EGL ( 1.5 ) header file dependencies is now included with Cinder which should simplify compilation on machines that these files are not present.
A test app is also now included under
For trying this out without X, on *Ubuntu instances with the default
This should stop X and from the same terminal session you can compile Cinder and the test app and run from command line.
The test app should produce the following