mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
GPU: More consistently clear ptrs on DeviceLost().
Rather get a null pointer crash than confusing buggy use-after-free excitement.
This commit is contained in:
1 parent
47b7305bf5
commit
7ec62a32b4
11 files changed
+17
-2
No files matched your search
@@ -168,6 +168,7 @@ void SamplerCache::DeviceLost() {
|
||||
vulkan_->Delete().QueueDeleteSampler(sampler);
|
||||
});
|
||||
cache_.Clear();
|
||||
vulkan_ = nullptr;
|
||||
}
|
||||
|
||||
void SamplerCache::DeviceRestore(VulkanContext *vulkan) {
|
||||
|
||||
Reference in new issue
Block a user