mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan: Free anything pending before the device.
This includes, for example, device memory and etc.
This commit is contained in:
parent
0009b55210
commit
2d34c0a8bc
1 changed files with 4 additions and 2 deletions
|
@ -1240,12 +1240,14 @@ void VulkanContext::DestroyFramebuffers() {
|
|||
}
|
||||
|
||||
void VulkanContext::DestroySurfaceRenderPass() {
|
||||
vkDestroyRenderPass(device_, surface_render_pass_, NULL);
|
||||
vkDestroyRenderPass(device_, surface_render_pass_, NULL);
|
||||
surface_render_pass_ = NULL;
|
||||
}
|
||||
|
||||
void VulkanContext::DestroyDevice() {
|
||||
vkDestroyDevice(device_, NULL);
|
||||
// If there happen to be any pending deletes, now is a good time.
|
||||
Delete().PerformDeletes(device_);
|
||||
vkDestroyDevice(device_, NULL);
|
||||
device_ = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue