Fix the allocation bug (Text procedural textures being cached and allocated only once, disposing them broke the internal system)
This commit is contained in:
parent
5ea819e59d
commit
d23ad9003a
@ -86,18 +86,7 @@ namespace TJAPlayer3
|
||||
{
|
||||
for (int i = 0; i < Pages.Length; i++)
|
||||
{
|
||||
Pages[i].Item2?.Dispose(); // Text
|
||||
Pages[i].Item3?.Dispose(); // Image
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Submenus != null)
|
||||
{
|
||||
for (int i = 0; i < Submenus.Length; i++)
|
||||
{
|
||||
Submenus[i].Item2?.Dispose();
|
||||
Pages[i].Item3?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user