Code: Select all
LIBGL_ALWAYS_SOFTWARE=1 ./spring
http://www.mesa3d.org/envvars.html
Notes/Issues:
- (afaik) this only works with opensource (Mesa/Gallium) drivers!
- FSAALevel = 0 has to be set (else i got the error "Couldn't find matching GLX visual")
- SIGNAL_NANS=FALSE has to be set, else a SIGFPE happens in swrast_dri.so
this feature could be useful:
- to run automatic tests on servers
- debug / improve gfx (mesa drivers are imo the reference implementation of opengl)
- test shaders
- make spring run on computers without a gfx card
- create (reproduceable) screenshots on a headless computer
- ...
Code: Select all
Xvfb :5 -screen 0 1024x768x24 &
DISPLAY=:5 ./spring
Code: Select all
xwd -display :5 -root -out image.xwd