mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
flutter: fix memory cleanup is slow due to not destroying shaders (#2470)
This commit is contained in:
parent
5edc53f2b0
commit
8e200efdbb
@ -183,6 +183,11 @@ class Atlas {
|
||||
for (final image in atlasPages) {
|
||||
image.dispose();
|
||||
}
|
||||
for (final map in atlasPagePaints) {
|
||||
map.values.forEach((element) {
|
||||
element.shader?.dispose();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user