sajty/ember — comment on commit bdf80d1bece1cc5512eebeb41a6e962b5c3b2557
File: src/components/ogre/EmberOgre.cpp line 219
By erikhjortsberg:

You're correct that if there's an exception in the main window, we should exit (since the user will just get a black screen).
However, the reason this was added is that it's very easy to get exceptions in other render textures, especially when doing authoring. A typical example would be when editiing Models, and getting an exception because you've tried to use a material which had some errors (since the Model editor uses a render texture to show a preview of the model). The way Ogre is designed makes it very hard to catch these things up front, and this is a working solution for it. It's not a good solution, but it fixes the cases where the whole app would crash just because one render texture was incorrect.
I want you to keep it, but we should definitely add a comment about it, and also look at better ways of handling it.