mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-10 13:43:54 +00:00
[thanos] Fixed renderer releaseResources to no-op on re-entry.
This commit is contained in:
@@ -625,6 +625,9 @@ void ThanosEffectRenderer::destroyAnimatingItem(AnimatingItem &item) {
|
||||
}
|
||||
|
||||
void ThanosEffectRenderer::releaseResources() {
|
||||
if (!_rhi) {
|
||||
return;
|
||||
}
|
||||
for (auto &item : _items) {
|
||||
destroyAnimatingItem(item);
|
||||
}
|
||||
@@ -660,6 +663,7 @@ void ThanosEffectRenderer::releaseResources() {
|
||||
_quadVertexBuffer = nullptr;
|
||||
|
||||
_initialized = false;
|
||||
_rhi = nullptr;
|
||||
}
|
||||
|
||||
} // namespace Ui
|
||||
|
||||
Reference in New Issue
Block a user