mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Don't convert pixel data to array
This commit is contained in:
parent
33d4e8f821
commit
5e692345de
@ -59,7 +59,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
private TextureUpload limitTextureUploadSize(TextureUpload textureUpload)
|
||||
{
|
||||
var image = Image.LoadPixelData(textureUpload.Data.ToArray(), textureUpload.Width, textureUpload.Height);
|
||||
var image = Image.LoadPixelData(textureUpload.Data, textureUpload.Width, textureUpload.Height);
|
||||
|
||||
// The original texture upload will no longer be returned or used.
|
||||
textureUpload.Dispose();
|
||||
|
Loading…
Reference in New Issue
Block a user