Skip to content

Commit 802f176

Browse files
committed
TextureContenLoader no longer mipmaps on kni, need to figure out why this breaks and why it's so slow
Upped FRB kni web to latest aesprite version
1 parent a84fd88 commit 802f176

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Engines/FlatRedBallXNA/FlatRedBall/Content/ContentLoaders/TextureContentLoader.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ public static Texture2D MakePremultiplied(Texture2D file)
217217
// Update Feb 14, 2025
218218
// can we mipmap textures
219219
// that aren't power of 2 now?
220-
//result = new RenderTarget2D(Renderer.GraphicsDevice, file.Width, file.Height);
220+
#if WEB
221+
result = new RenderTarget2D(Renderer.GraphicsDevice, file.Width, file.Height);
222+
#else
221223
//result = new RenderTarget2D(Renderer.GraphicsDevice, file.Width, file.Height,);
222224
result = new RenderTarget2D(Renderer.GraphicsDevice, file.Width, file.Height, CreateMipMaps, SurfaceFormat.Color, DepthFormat.None);
223-
225+
#endif
224226
}
225227

226228

Engines/FlatRedBallXNA/KniWeb/FlatRedBallKniWeb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<Import Project="..\FlatRedBall\FlatRedBallShared.projitems" Label="Shared" />
1616

1717
<ItemGroup>
18-
<PackageReference Include="AsepriteDotNet" Version="1.8.2" />
18+
<PackageReference Include="AsepriteDotNet" Version="1.9.0" />
1919
<PackageReference Include="nkast.Xna.Framework.Blazor" Version="3.13.9001" />
2020
</ItemGroup>
2121
</Project>

0 commit comments

Comments
 (0)