layers: Replace INVALID_EVENT check with OBJECT_INUSE
authorTobin Ehlis <tobine@google.com>
Mon, 18 Jul 2016 20:26:18 +0000 (14:26 -0600)
committerTobin Ehlis <tobine@google.com>
Tue, 19 Jul 2016 19:38:59 +0000 (13:38 -0600)
commit89172c725273865e3986098479efd00a14ccf749
tree863ec8b1d99edc886d30051401c630bc93b5e043
parent57eecdf5eedfefb6779ed8d9707c8f51e0cb36ae
layers: Replace INVALID_EVENT check with OBJECT_INUSE

If an event being destroyed is in use, the correct error enum to use
is DRAWSTATE_OBJECT_INUSE.
layers/core_validation.cpp