realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Windows: --headless crashes when RenderSystem_Headless Ogre renderer not found #757

Open jonnenauha opened 10 years ago

jonnenauha commented 10 years ago

This is windows specific. If --headless is passed and RenderSystem_Headless.dll is not found Tundra will crash. You can override this by also passing in eg. --d3d9 to override the .json config renderer selection.

Needs to be fixed so that if the wanted render plugin cant be loaded into ogre (dll not found) it will fallback to the system default one.

jonnenauha commented 10 years ago

The system actually tries to recover from the situation by loading the default renderer for the OS, but it cant as loading anything but the headless renderer was skipped in LoadOgrePlugins.

I would like to preserve it so that unnecessary render plugins are not loaded if not needed.