Skip to content

Commit

Permalink
[O] Disable MipMap
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Sep 29, 2024
1 parent e7c69d2 commit e9bac0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions AquaMai/UX/LoadAssetsPng.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static Texture2D GetJacketTexture2D(string id)
return null;
}

var texture = new Texture2D(1, 1);
var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(path));
return texture;
}
Expand Down Expand Up @@ -125,7 +125,7 @@ public static void TabTitleLoader(MusicSelectMonitor __instance, Dictionary<int,
var filename = genre.FileName.ToLowerInvariant();
var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename);
if (locPath is null) continue;
var texture = new Texture2D(1, 1);
var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(locPath));
____genreSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
}
Expand All @@ -137,7 +137,7 @@ public static void TabTitleLoader(MusicSelectMonitor __instance, Dictionary<int,
var filename = version.FileName.ToLowerInvariant();
var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename);
if (locPath is null) continue;
var texture = new Texture2D(1, 1);
var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false);
texture.LoadImage(File.ReadAllBytes(locPath));
____versionSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
}
Expand Down
2 changes: 0 additions & 2 deletions AquaMai/Utils/PractiseModeUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace AquaMai.Utils;

public class PractiseModeUI : MonoBehaviour
{
private GUIWindow window;

private float playerWidth;
private float playerCenter;
private float windowTop;
Expand Down

0 comments on commit e9bac0a

Please sign in to comment.