layers: Add in-use check at DestroyImage() time
authorTobin Ehlis <tobine@google.com>
Wed, 21 Sep 2016 20:28:42 +0000 (14:28 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 22 Sep 2016 13:21:24 +0000 (07:21 -0600)
commitf940225c9e5e3e14b3f5a32d3ea360b585614600
treed9627fa5ae94866c6ee4cdfe5636367caea0a16d
parent949530f6853a8976c49abc5b1dda54f49b0e0c3a
layers: Add in-use check at DestroyImage() time

Flag error if an in-use image is destroyed.
Also clean up a couple minor issues related to binding objects to command buffer.
layers/core_validation.cpp