mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 11:49:05 +02:00
Vulkan: Free anything pending before the device.
This includes, for example, device memory and etc.
This commit is contained in:
1 parent
0009b55210
commit
2d34c0a8bc
1 file changed
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user