Vulkan/RenderWindow: Fix crash at window destruction

Former-commit-id: a78546e762be474cbd10c882f671413877b62d5b [formerly a18932aaf9e9ac737fd949f84a5d3c6e41cbea40]
Former-commit-id: 2cc105aae9f9b9d45a174ec2d1753fdb55692ef0
This commit is contained in:
Lynix 2016-07-11 18:23:50 +02:00
parent 1e7d82ceb5
commit a41954842e
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ namespace Nz
void RenderWindow::OnWindowDestroy()
{
m_device->WaitForIdle();
m_frameBuffers.clear();
m_renderPass.Destroy();