layers: Fix state tracking for vkFlushMappedMemoryRanges()
authorTobin Ehlis <tobine@google.com>
Wed, 5 Oct 2016 13:50:25 +0000 (07:50 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 5 Oct 2016 20:56:01 +0000 (14:56 -0600)
commitd8a53ade6b5501256798a8b4ec0bc14f72adc1fa
treee037921e3e0f54f1cbcc907ba22292438826b342
parent747ce6dd32eafd93da3dc12a6ffd670e746ae453
layers: Fix state tracking for vkFlushMappedMemoryRanges()

Checks for underflow and overflow when flushing mapped memory where using the
flush offset instead of the original mapped region offset to determine size of
total mapped region.
layers/core_validation.cpp