summaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2017-03-29 13:39:27 -0600
committerMark Young <marky@lunarg.com>2017-04-07 09:08:22 -0600
commit3cc02e191b679cd2417f95a92b701cd6690f11c4 (patch)
tree0f5c4ac09921d1b7a1e6fa38606aeaee2b50d166 /loader
parent5ce9cedd1809b095fa0cac22c2eea4f65c2456aa (diff)
loader: Fix loader and layer negotiation
Resolve missing struct sType as well as extern of vkNegotiateLoaderAndLayerInterface as a C function. Finally, bump up the JSON file version so it looks for the negotiate function. Change-Id: I7fd4784fce6cbd0c303f7b2bb354542e4b16b1df
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 4a47c75f..634395ee 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -3786,8 +3786,7 @@ VkResult loader_enable_instance_layers(struct loader_instance *inst, const VkIns
bool loader_get_layer_interface_version(PFN_vkNegotiateLoaderLayerInterfaceVersion fp_negotiate_layer_version,
VkNegotiateLayerInterface *interface_struct) {
memset(interface_struct, 0, sizeof(VkNegotiateLayerInterface));
-
- // Base assumption is that all layers are version 1 at least.
+ interface_struct->sType = LAYER_NEGOTIATE_INTERFACE_STRUCT;
interface_struct->loaderLayerInterfaceVersion = 1;
if (fp_negotiate_layer_version != NULL) {