OSDN Git Service
(root)
/
radegast
/
radegast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79319c3
)
Try to handle errors during rendering more gratefully
author
Latif Khalifa
<latifer@streamgrid.net>
Wed, 27 Feb 2013 04:01:03 +0000
(
05:01
+0100)
committer
Latif Khalifa
<latifer@streamgrid.net>
Wed, 27 Feb 2013 04:01:03 +0000
(
05:01
+0100)
Radegast/GUI/Rendering/Rendering.cs
patch
|
blob
|
history
diff --git
a/Radegast/GUI/Rendering/Rendering.cs
b/Radegast/GUI/Rendering/Rendering.cs
index
73ffd20
..
fa96dba
100644
(file)
--- a/
Radegast/GUI/Rendering/Rendering.cs
+++ b/
Radegast/GUI/Rendering/Rendering.cs
@@
-311,6
+311,14
@@
namespace Radegast.Rendering
}
catch (ObjectDisposedException)
{ }
+#if !DEBUG
+ catch (Exception ex)
+ {
+ RenderingEnabled = false;
+ Logger.Log("Crash of the 3D scene viewer:\n" + ex.ToString(), Helpers.LogLevel.Error);
+ Dispose();
+ }
+#endif
}
}
#endregion Construction and disposal