layers: Reorder to prevent Null deref; add test
authorKarl Schultz <karl@lunarg.com>
Thu, 21 Apr 2016 21:57:51 +0000 (15:57 -0600)
committerKarl Schultz <karl@lunarg.com>
Thu, 21 Apr 2016 21:57:51 +0000 (15:57 -0600)
commitb7a3213de50f36fe1a3b7c32861932f79eb4b154
treefea7548954f01815dc4ab608907f69237d63013f
parentd26b05f7fa4d79202cfa54f1864a88eccbac39e9
layers: Reorder to prevent Null deref; add test

Found by running Hologram with validation and push constants
using args "-p -v".
Hologram is issuing a memory barrier in the push constants
mode.  This will be fixed in Hologram, but validation should
not be crashing.

Change-Id: I1e76c3fca0152fc3bf8c1de3db3b044f650c202f
layers/core_validation.cpp