mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 03:16:54 +02:00
graphics: simplify texture cleanup and swizzle decoding
This commit is contained in:
+1
-5
@@ -187,15 +187,11 @@ TextureCache::TextureCache(GraphicContext& graphics, CommandScheduler& scheduler
|
||||
}
|
||||
|
||||
TextureCache::~TextureCache() {
|
||||
std::vector<ImageId> registered;
|
||||
m_slot_images.ForEach([&](ImageId id, const Image& image) {
|
||||
if (image.registered) {
|
||||
registered.push_back(id);
|
||||
UnregisterImage(id);
|
||||
}
|
||||
});
|
||||
for (const auto id: registered) {
|
||||
UnregisterImage(id);
|
||||
}
|
||||
}
|
||||
|
||||
bool TextureCache::SameBacking(const ImageInfo& cached, const ImageInfo& requested,
|
||||
|
||||
Reference in New Issue
Block a user