layers: GH1355, Fix bad swapchain image accesses
authorThomas Louis <thomaslouis81@gmail.com>
Tue, 10 Jan 2017 23:17:08 +0000 (00:17 +0100)
committerMark Lobodzinski <mark@lunarg.com>
Thu, 19 Jan 2017 03:42:12 +0000 (20:42 -0700)
commitaef8f2aa8534a48ba1898b5fd712c82970c30afd
tree297f7e816a93957a174e9cfe339cd55c9b46e774
parent5be2fd16eab8b5d7596ed55df5490e617a41ee0e
layers: GH1355, Fix bad swapchain image accesses

vkAcquireNextImageKHR throws Access Violation Exception. Added a new
error enum value and created an error check in vkAcquireNextImageKHR
to avoid index out of bounds exception (thrown in core_validation)
within the application.

Change-Id: Ie7fe2d3830e26c21b09290054cc39bc55e534cbc
layers/core_validation.cpp
layers/core_validation_error_enums.h