Resolve some validation layer warnings in some samples. (#1640)
This commit is contained in:
committed by
GitHub
parent
57d54a0ba6
commit
d07d082af1
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user