diff options
author | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
commit | 1a55dd11f1e0c17452c3264ff02496d8ced8a421 (patch) | |
tree | a358deb7a59b1a46075b1dc5adf7f359edb3151c /OpenSim/Region/Environment/Modules/Scripting/DynamicTexture | |
parent | - remove extra "; in http_loginform.html.example; fix issue 3025 (diff) | |
download | opensim-SC-1a55dd11f1e0c17452c3264ff02496d8ced8a421.zip opensim-SC-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.gz opensim-SC-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.bz2 opensim-SC-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.xz |
* More friendly OpenJpeg error handling.
* Often times now the only reason OpenJpeg doesn't work is because it requires Glibc 2.4 The error messages reflect that.
* In J2kDecoder module, It stops trying to decode modules if it encounters a dllnotfound exception and instead sends a full resolution layer that causes the texture sender to only send the full resolution image. (big decrease in texture download speed, but it's better then nasty repeating error messages)
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/DynamicTexture')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs index 59d29d6..e9fe373 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs | |||
@@ -275,7 +275,19 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture | |||
275 | 275 | ||
276 | Bitmap joint = MergeBitMaps(image1, image2); | 276 | Bitmap joint = MergeBitMaps(image1, image2); |
277 | 277 | ||
278 | return OpenJPEG.EncodeFromImage(joint, true); | 278 | byte[] result = new byte[0]; |
279 | |||
280 | try | ||
281 | { | ||
282 | result = OpenJPEG.EncodeFromImage(joint, true); | ||
283 | } | ||
284 | catch (Exception) | ||
285 | { | ||
286 | Console.WriteLine( | ||
287 | "[DYNAMICTEXTUREMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); | ||
288 | } | ||
289 | |||
290 | return result; | ||
279 | } | 291 | } |
280 | } | 292 | } |
281 | 293 | ||