loader: Override layer load when custom allocator used.
authorDorian Apanel <dorian.apanel@gmail.com>
Wed, 7 Oct 2020 09:18:51 +0000 (11:18 +0200)
committerLenny Komow <lenny@lunarg.com>
Thu, 8 Oct 2020 22:19:21 +0000 (16:19 -0600)
commite3ba62fe5451439c60eca6cf6bd9fb1d96147c05
tree81da58ca7a656b5c6393401d66e5834eacdd7b69
parentdc8a96d60b6b03bd77f88f19d5028d91aab220f1
loader: Override layer load when custom allocator used.

When custom allocator is used, and is requested to allocate
zero size allocation, it can return NULL, which is then
interpreted as VK_ERROR_OUT_OF_HOST_MEMORY.

When such allocator was used, override layer was not loaded.

fix #485
loader/loader.c