Wait queue to become idle before deleting texture
This commit is contained in:
parent
ea275ae798
commit
4b28f5b9af
@ -284,6 +284,7 @@ namespace GE
|
||||
VkMemoryPropertyFlags properties, VkBuffer& buffer,
|
||||
VkDeviceMemory& buffer_memory);
|
||||
VkPhysicalDevice getPhysicalDevice() const { return m_physical_device; }
|
||||
void waitIdle() { vkQueueWaitIdle(m_graphics_queue); }
|
||||
VkCommandBuffer beginSingleTimeCommands();
|
||||
void endSingleTimeCommands(VkCommandBuffer command_buffer);
|
||||
|
||||
|
@ -61,6 +61,7 @@ GEVulkanTexture::GEVulkanTexture(const std::string& name, unsigned int size,
|
||||
// ----------------------------------------------------------------------------
|
||||
GEVulkanTexture::~GEVulkanTexture()
|
||||
{
|
||||
getVKDriver()->waitIdle();
|
||||
clearVulkanData();
|
||||
} // ~GEVulkanTexture
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user