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