allow for 1024x1024 textures through osSetDynamicTextureURL. Follow up patch
to do smarter resize coming this afternoon.ThreadPoolClientBranch
parent
c769d93206
commit
2f6e1ac34d
|
@ -126,7 +126,7 @@ namespace OpenSim.Region.Environment.Modules
|
||||||
if (response.StatusCode == HttpStatusCode.OK)
|
if (response.StatusCode == HttpStatusCode.OK)
|
||||||
{
|
{
|
||||||
Bitmap image = new Bitmap(response.GetResponseStream());
|
Bitmap image = new Bitmap(response.GetResponseStream());
|
||||||
Bitmap resize = new Bitmap(image, new Size(512, 512));
|
Bitmap resize = new Bitmap(image, new Size(1024, 1024));
|
||||||
byte[] imageJ2000 = OpenJPEG.EncodeFromImage(resize, true);
|
byte[] imageJ2000 = OpenJPEG.EncodeFromImage(resize, true);
|
||||||
|
|
||||||
m_textureManager.ReturnData(state.RequestID, imageJ2000);
|
m_textureManager.ReturnData(state.RequestID, imageJ2000);
|
||||||
|
@ -146,4 +146,4 @@ namespace OpenSim.Region.Environment.Modules
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue