layers: Set cmd buffer invalid on event destroy
authorTobin Ehlis <tobine@google.com>
Thu, 7 Jul 2016 22:47:10 +0000 (16:47 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 13 Jul 2016 17:29:38 +0000 (11:29 -0600)
commit63d3f864d88501c9502e86f6a5acd117ccce6f5d
treed828b2c95b5a95e0247a19d63e60784313c5f0e7
parent0b829888befddb0bf79f31c355087ab675e076a9
layers: Set cmd buffer invalid on event destroy

When an event is destroyed, set any cmd buffers that it was bound
to to the CB_INVALID state.

Also added getEventNode() helper and made use of it where appropriate.
layers/core_validation.cpp