layers: GH321, vkAllocateMemory return code handling
authorMark Lobodzinski <mark@lunarg.com>
Mon, 14 Nov 2016 15:18:09 +0000 (08:18 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 14 Nov 2016 15:18:09 +0000 (08:18 -0700)
commit4bac7a3e221c5dd943d8bb600fe21356342486c9
tree1e1dbc626689ffa6462143306c323117e02c8f50
parentf64d9c889f7cfd1dd7c4bb034136bbd7020a82f2
layers: GH321, vkAllocateMemory return code handling

If a custom allocator is used and fails, validation will continue,
using a null pointer and leading to invalid/unuseful validation
errors. Added a check for a good return code.

Change-Id: I2a91f2e9b3b951296b1e452364c863bca6b67b9f
layers/core_validation.cpp