Skip to content
Permalink
Browse files

- call vkDeviceWaitIdle before RAII tears down buffers

  • Loading branch information...
dpjudas committed Aug 8, 2019
1 parent bf9c584 commit d1026e4b5b4d03d794988e997bd0fe1d6977e8b8
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/rendering/vulkan/system/vk_framebuffer.cpp
@@ -98,6 +98,8 @@ VulkanFrameBuffer::VulkanFrameBuffer(void *hMonitor, bool fullscreen, VulkanDevi

VulkanFrameBuffer::~VulkanFrameBuffer()
{
vkDeviceWaitIdle(device->device); // make sure the GPU is no longer using any objects before RAII tears them down

// screen is already null at this point, but VkHardwareTexture::ResetAll needs it during clean up. Is there a better way we can do this?
auto tmp = screen;
screen = this;

0 comments on commit d1026e4

Please sign in to comment.
You can’t perform that action at this time.