From 7670a0ac84879d363324af65d2f8ab0d5445d170 Mon Sep 17 00:00:00 2001 From: Matteo Franchin Date: Wed, 11 Sep 2019 13:26:22 +0000 Subject: [PATCH] Fix small issues in documentation and code A couple of details in the installation instructions needed updating. Also fixed a warning message due to a missing return statement (the return value is currently not used in calls to the function). Signed-off-by: Matteo Franchin Change-Id: I715b954579253e664ebe01f757587e0602ad82e7 --- README.md | 3 +-- layer/private_data.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d62835f..37ff2b0 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,7 @@ git clone https://github.com/KhronosGroup/Vulkan-Loader.git mkdir Vulkan-Loader/build cd Vulkan-Loader/build ../scripts/update_deps.py -make -C Vulkan-Headers install -cmake -C helper.cmake .. -DBUILD_WSI_HEADLESS_SUPPORT=ON +cmake -C helper.cmake .. make make install ``` diff --git a/layer/private_data.cpp b/layer/private_data.cpp index 4d15769..8396a94 100644 --- a/layer/private_data.cpp +++ b/layer/private_data.cpp @@ -88,6 +88,7 @@ device_private_data &device_private_data::create(VkDevice dev, PFN_vkGetDevicePr new device_private_data(dev, get_proc, instance_private_data::get(get_key(phys_dev)), set_loader_data); scoped_mutex lock(g_data_lock); g_device_data[get_key(dev)] = dev_data; + return *dev_data; } device_private_data &device_private_data::get(void *key) -- 2.34.1