Skip to content

Commit

Permalink
fix uninitialized variable, layer metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
xytovl committed Apr 17, 2021
1 parent 4ac4c3b commit a11c744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions alvr/server/cpp/tools/vulkan-layer/layer/layer.cpp
Expand Up @@ -44,10 +44,10 @@
namespace layer {

static const VkLayerProperties global_layer = {
"VK_LAYER_window_system_integration",
"VK_LAYER_ALVR_capture",
VK_LAYER_API_VERSION,
1,
"Window system integration layer",
"ALVR capture layer",
};
static const VkExtensionProperties device_extension[] = {
{VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_KHR_SWAPCHAIN_SPEC_VERSION}};
Expand Down Expand Up @@ -277,7 +277,7 @@ VKAPI_ATTR VkResult create_device(VkPhysicalDevice physicalDevice,
std::vector<VkDeviceQueueCreateInfo> queueCreateInfo(pCreateInfo->pQueueCreateInfos, pCreateInfo->pQueueCreateInfos + pCreateInfo->queueCreateInfoCount);
assert(queueCreateInfo.size() > 0);
std::vector<VkQueueFamilyProperties> props(queueCreateInfo.size());
uint32_t size;
uint32_t size = props.size();
inst_data.disp.GetPhysicalDeviceQueueFamilyProperties(physicalDevice, &size, props.data());
std::vector<float> queuePriorities;
size_t display_queue = 0;
Expand Down
3 changes: 2 additions & 1 deletion alvr/server/cpp/tools/vulkan-layer/wsi/display.cpp
Expand Up @@ -44,5 +44,6 @@ VkFence wsi::display::get_vsync_fence()

wsi::display::~display() {
m_exiting = true;
m_vsync_thread.join();
if (m_vsync_thread.joinable())
m_vsync_thread.join();
}

0 comments on commit a11c744

Please sign in to comment.