loader: Return error if layer loading failed
authorCharles Giessen <charles@lunarg.com>
Mon, 1 Jun 2020 22:26:54 +0000 (16:26 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 2 Sep 2020 23:40:27 +0000 (17:40 -0600)
commit49648d8fb398ac7d3d8e159939de060b8e759ecf
tree3cce32281572e93234b0520d8ae1b0b8f868051a
parentd846ea5a2427eb0119cf98288aa337eced10edbd
loader: Return error if layer loading failed

Loader will now fail vkCreateInstance with VK_ERROR_LAYER_NOT_PRESENT
if the layer's library failed to load. Previously, it would log the
error but continue, leading to false positives since it would return
VK_SUCCESS.

Change-Id: I00804b6f02cc6e927ac0219b4cb0c2361d6561fe
loader/loader.c