VDrift/vdrift — Issue #81: NoShader fallback does not work
Author: bigben87
Created: 2012-02-10 23:23:04+00:00
State: open

Vdrift fails to run when the graphics driver does not support shaders:

```
$ vdrift
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: 2012-02-11-full, Version: exportiert, O/S: Unix
INFO: Home directory: /home/bengt
INFO: Settings file: /home/bengt/.vdrift/VDrift.config
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/bengt/.vdrift/tmp
INFO: Log file: /home/bengt/.vdrift/log.txt
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 16z fullscreen=0
INFO: Video card information:
Vendor: X.Org
Renderer: Gallium 0.4 on AMD RS780
Version: 2.1 Mesa 7.11.2
Maximum texture size: 8192
Maximum varying floats: 64
Using GLEW 1.6.0
INFO: Your video card doesn't support floating point textures. Disabling shaders.
ERROR: Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
ERROR: Error loading non-shader render configuration file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
vdrift: src/graphics_fallback.cpp:621: void GRAPHICS_FALLBACK::DisableShaders(const string&, std::ostream&): Assertion `0' failed.
INFO: SIGABRT detected, releasing the mouse
Abgebrochen (Speicherabzug geschrieben)
```
The same with `-multithreaded`:

```
$ vdrift -multithreaded
INFO: Multithreading enabled: 2 processors
INFO: Starting VDrift: 2012-02-11-full, Version: exportiert, O/S: Unix
INFO: Home directory: /home/bengt
INFO: Settings file: /home/bengt/.vdrift/VDrift.config
INFO: Data directory: /usr/local/share/games/vdrift/data
DATA_DIR: /usr/local/share/games/vdrift/data
INFO: Temporary directory: /home/bengt/.vdrift/tmp
INFO: Log file: /home/bengt/.vdrift/log.txt
INFO: The last VDrift startup was unsuccessful.
Settings have been set to failsafe defaults.
Your original VDrift.config file was backed up to VDrift.config.backup
INFO: Disabling antialiasing
INFO: Display change was successful: 800x600x16 16z fullscreen=0
INFO: Video card information:
Vendor: X.Org
Renderer: Gallium 0.4 on AMD RS780
Version: 2.1 Mesa 7.11.2
Maximum texture size: 8192
Maximum varying floats: 64
Using GLEW 1.6.0
INFO: Your video card doesn't support floating point textures. Disabling shaders.
ERROR: Unable to open graphics config file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
ERROR: Error loading non-shader render configuration file: /usr/local/share/games/vdrift/data/shaders/render.conf.noshaders
vdrift: src/graphics_fallback.cpp:621: void GRAPHICS_FALLBACK::DisableShaders(const string&, std::ostream&): Assertion `0' failed.
INFO: SIGABRT detected, releasing the mouse
Abgebrochen (Speicherabzug geschrieben)
```

The file `usr/local/share/games/vdrift/data/shaders/render.conf.noshaders` does not exist on my system. Should it have been placed there on installation?