layers: Update clearValueCount check
authorTobin Ehlis <tobine@google.com>
Fri, 15 Jul 2016 22:01:13 +0000 (16:01 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 15 Jul 2016 22:01:13 +0000 (16:01 -0600)
commit06dfa5386f3f49b25598f8fbfee0b978fa4a3a5e
treec24c02d8fc679c7b0b85f77f4df29b0ce7a38bf5
parent8b4e98a9244fd61b75714c00e66d48885da0128c
layers: Update clearValueCount check

The pClearValues array is indexed by the attachment index which
means that it must be at least as large as the last LOAD_OP_CLEAR
attachment in the renderpass. Updating this check to reflect this
requirement.
layers/core_validation.cpp