allow for 1024x1024 textures through osSetDynamicTextureURL. Follow up patch

to do smarter resize coming this afternoon.
ThreadPoolClientBranch
Sean Dague 2008-02-15 13:00:47 +00:00
parent c769d93206
commit 2f6e1ac34d
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }
} }
} }
} }