From 293f775fa56c8bcb3986373e004f54e549168be6 Mon Sep 17 00:00:00 2001 From: Tom Grimshaw Date: Wed, 2 Jun 2010 07:59:18 -0700 Subject: [PATCH] Always provide at least 2 packets of a texture (if the texture is larger than 1 packet). This fixes compatibility with the newer (broken) SnowGlobe and Emerald viewer(s), but also matches the behaviour of SL. --- OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs index 9869a99418..5c17b0ede6 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs @@ -202,6 +202,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_stopPacket = TexturePacketCount(); } + //Give them at least two packets, to play nice with some broken viewers (SL also behaves this way) + if (m_stopPacket == 1 && Layers[0].End > FIRST_PACKET_SIZE) m_stopPacket++; + m_currentPacket = StartPacket; } }