aboutsummaryrefslogtreecommitdiff
path: root/loader/loader.c
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
commit8e04c6f0054eccf28f26245255eb05685a7c11ba (patch)
tree92417c191eaedaef7bf735555444b3aafd937a95 /loader/loader.c
parent10b04f3da9a9282428b6532667ea88256cfb6060 (diff)
downloadusermoji-8e04c6f0054eccf28f26245255eb05685a7c11ba.tar.xz
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/loader.c')
-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) {