Resolve some validation layer warnings in some samples. (#1640)

This commit is contained in:
Andreas Süßenbach
2023-08-17 14:28:39 +02:00
committed by GitHub
parent 57d54a0ba6
commit d07d082af1
8 changed files with 31 additions and 11 deletions

View File

@@ -104,8 +104,8 @@ int main( int /*argc*/, char ** /*argv*/ )
vk::su::submitAndWait( device, graphicsQueue, commandBuffer );
device.destroySemaphore( imageAcquiredSemaphore );
device.destroyBuffer( vertexBuffer ); // destroy the buffer before the bound device memory to prevent some validation layer warning
device.freeMemory( deviceMemory );
device.destroyBuffer( vertexBuffer );
/* VULKAN_KEY_END */