aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
diff options
context:
space:
mode:
authorBlueWall2015-03-04 14:36:26 -0500
committerBlueWall2015-03-04 14:36:26 -0500
commit96b87407f14f77e18219631d2aeb604accbde847 (patch)
treeb18d776aa34b043679efbc9a511ff90cfa35ee6f /OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
parentOne more migration fix (diff)
downloadopensim-SC-96b87407f14f77e18219631d2aeb604accbde847.zip
opensim-SC-96b87407f14f77e18219631d2aeb604accbde847.tar.gz
opensim-SC-96b87407f14f77e18219631d2aeb604accbde847.tar.bz2
opensim-SC-96b87407f14f77e18219631d2aeb604accbde847.tar.xz
Revert "removed replacement texture in UDP Texture code. The replacement texture introduces false data into viewer cache. Removing that decreases the necessity for clearing the viewer cache. The viewer knows with ImageNotInDatabase that it is missing and can therefore know what to do about it a lot better than the sim does."
This reverts commit 4d749d8c6986498547f9a61406105e93445960b4. Re-open mantis 0007474 for further work before final commit.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs b/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
index 42d09eb..4d0568d 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
@@ -247,6 +247,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
247 247
248 if (m_asset == null) 248 if (m_asset == null)
249 { 249 {
250 m_log.Warn("[J2KIMAGE]: Sending ImageNotInDatabase for texture " + TextureID);
250 client.SendImageNotFound(TextureID); 251 client.SendImageNotFound(TextureID);
251 return true; 252 return true;
252 } 253 }
@@ -384,8 +385,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
384 385
385 if (asset == null || asset.Data == null) 386 if (asset == null || asset.Data == null)
386 { 387 {
387 m_asset = null; 388 if (m_imageManager.MissingImage != null)
388 IsDecoded = true; 389 {
390 m_asset = m_imageManager.MissingImage.Data;
391 }
392 else
393 {
394 m_asset = null;
395 IsDecoded = true;
396 }
389 } 397 }
390 else 398 else
391 { 399 {