diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/VectorRender')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs index f8a9879..ffbc262 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs | |||
@@ -169,7 +169,17 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender | |||
169 | 169 | ||
170 | GDIDraw(data, graph); | 170 | GDIDraw(data, graph); |
171 | 171 | ||
172 | byte[] imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, true); | 172 | byte[] imageJ2000 = new byte[0]; |
173 | |||
174 | try | ||
175 | { | ||
176 | imageJ2000 = OpenJPEG.EncodeFromImage(bitmap, true); | ||
177 | } | ||
178 | catch (Exception) | ||
179 | { | ||
180 | Console.WriteLine( | ||
181 | "[VECTORRENDERMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); | ||
182 | } | ||
173 | m_textureManager.ReturnData(id, imageJ2000); | 183 | m_textureManager.ReturnData(id, imageJ2000); |
174 | } | 184 | } |
175 | 185 | ||