tests: Fix crash in Windows Release builds
authorMark Lobodzinski <mark@lunarg.com>
Fri, 17 Jun 2016 21:10:03 +0000 (15:10 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 17 Jun 2016 21:10:03 +0000 (15:10 -0600)
Change-Id: I65258cc7a0e9682717e16facd1d3f168cb444427

tests/layer_validation_tests.cpp

index 0afd752..ff95397 100644 (file)
@@ -3098,6 +3098,7 @@ TEST_F(VkLayerTest, StencilLoadOp) {
     vkQueueSubmit(m_device->m_queue, 1, &submit_info, VK_NULL_HANDLE);
     m_errorMonitor->VerifyNotFound();
 
+    vkQueueWaitIdle(m_device->m_queue);
     vkDestroyFence(m_device->device(), fence, nullptr);
     vkDestroyRenderPass(m_device->device(), rp, nullptr);
     vkDestroyFramebuffer(m_device->device(), fb, nullptr);