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

@@ -186,8 +186,8 @@ int main( int /*argc*/, char ** /*argv*/ )
device.destroySampler( sampler );
device.freeMemory( textureBufferMemory );
device.destroyBuffer( textureBuffer );
device.destroyImage( image ); // destroy the image before the bound device memory to prevent some validation layer warning
device.freeMemory( imageMemory );
device.destroyImage( image );
device.freeCommandBuffers( commandPool, commandBuffer );
device.destroyCommandPool( commandPool );
device.destroy();