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

@@ -116,6 +116,9 @@ int main( int /*argc*/, char ** /*argv*/ )
commandBuffer.end();
vk::raii::su::submitAndWait( device, graphicsQueue, commandBuffer );
// in order to prevent some validation layer warning, you need to explicitly free the buffer before the device memory
vertexBuffer.clear();
/* VULKAN_KEY_END */
}
catch ( vk::SystemError & err )