mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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) {
|
for (final image in atlasPages) {
|
||||||
image.dispose();
|
image.dispose();
|
||||||
}
|
}
|
||||||
|
for (final map in atlasPagePaints) {
|
||||||
|
map.values.forEach((element) {
|
||||||
|
element.shader?.dispose();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user