mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Fix a few more device-loss bugs.
This commit is contained in:
1 parent
1c76d28843
commit
378e01625c
4 files changed
+28
-9
No files matched your search
@@ -251,10 +251,8 @@ void DrawEngineVulkan::DestroyDeviceObjects() {
|
||||
vulkan_->Delete().QueueDeleteSampler(nullSampler_);
|
||||
if (pipelineLayout_ != VK_NULL_HANDLE)
|
||||
vulkan_->Delete().QueueDeletePipelineLayout(pipelineLayout_);
|
||||
pipelineLayout_ = VK_NULL_HANDLE;
|
||||
if (descriptorSetLayout_ != VK_NULL_HANDLE)
|
||||
vulkan_->Delete().QueueDeleteDescriptorSetLayout(descriptorSetLayout_);
|
||||
descriptorSetLayout_ = VK_NULL_HANDLE;
|
||||
if (nullTexture_) {
|
||||
nullTexture_->Destroy();
|
||||
delete nullTexture_;
|
||||
@@ -263,6 +261,7 @@ void DrawEngineVulkan::DestroyDeviceObjects() {
|
||||
vertexCache_->Destroy(vulkan_);
|
||||
delete vertexCache_;
|
||||
vertexCache_ = nullptr;
|
||||
vai_.Clear(); // Need to clear this to get rid of all remaining references to the dead buffers.
|
||||
}
|
||||
|
||||
void DrawEngineVulkan::DeviceLost() {
|
||||
|
||||
Reference in new issue
Block a user