common scene: fix a regression bug.

That is wrongly changed by 39bf94e506

renderer must be valid until all operations is done.
This commit is contained in:
Hermet Park 2021-06-22 17:22:39 +09:00
parent 58f251163b
commit 234c1cefc8

View file

@ -177,9 +177,9 @@ struct Scene::Impl
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) { for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
if (dispose) (*paint)->pImpl->dispose(*renderer); if (dispose) (*paint)->pImpl->dispose(*renderer);
if (free) delete(*paint); if (free) delete(*paint);
renderer = nullptr;
} }
paints.clear(); paints.clear();
renderer = nullptr;
} }
}; };