- make the VkHardwareTexture and VKBuffer linked lists private

This commit is contained in:
Magnus Norddahl 2019-04-30 19:49:29 +02:00
commit ab8378152f
5 changed files with 25 additions and 13 deletions

View file

@ -94,12 +94,9 @@ VulkanFrameBuffer::VulkanFrameBuffer(void *hMonitor, bool fullscreen, VulkanDevi
VulkanFrameBuffer::~VulkanFrameBuffer()
{
// All descriptors must be destroyed before the descriptor pool in renderpass manager is destroyed
for (VkHardwareTexture *cur = VkHardwareTexture::First; cur; cur = cur->Next)
cur->Reset();
for (VKBuffer *cur = VKBuffer::First; cur; cur = cur->Next)
cur->Reset();
VkHardwareTexture::ResetAll();
VKBuffer::ResetAll();
PPResource::ResetAll();
delete MatricesUBO;