layers: Add detection for in-use query pool & clean-up destroys
authorTobin Ehlis <tobine@google.com>
Thu, 18 Aug 2016 14:23:30 +0000 (08:23 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 8 Sep 2016 15:21:49 +0000 (09:21 -0600)
commiteafbf0b68ee6ea6e0bf33f07e0058d00a96efd9a
tree2b01c76fc93f200b0d58b1d1160b369ea75475dd
parent0421424eeed39384b1557ccad6908d7baf29d716
layers: Add detection for in-use query pool & clean-up destroys

Flag error if in-use query pool is destroyed.
Unify in-use error reporting to use common function ValidateObjectNotInUse().

Clean up Destroy functions to only remove objects from maps if skip is not set
for semaphores, events, querypool, pipeline
layers/core_validation.cpp