From bccef1f7f49db44ce9ec39d93ede636e913d261b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 15 May 2023 18:41:45 +0200 Subject: [PATCH] fixed FNA compatibility --- MLEM.Data/RuntimeTexturePacker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Data/RuntimeTexturePacker.cs b/MLEM.Data/RuntimeTexturePacker.cs index 50813e1..6954ca3 100644 --- a/MLEM.Data/RuntimeTexturePacker.cs +++ b/MLEM.Data/RuntimeTexturePacker.cs @@ -256,7 +256,7 @@ namespace MLEM.Data { // if no texture is occupying this space, we have found a free area if (existing == null) { // if this is the first position that this request fit in, no other requests of the same size will find a position before it - this.initialPositions[area.Size] = area.Location; + this.initialPositions[new Point(area.Width, area.Height)] = area.Location; this.occupiedPositions.Add(area.Location, request); return area; }