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 e9b5af8
Showing 1 changed file with 3 additions and 3 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

0 comments on commit e9b5af8

Please sign in to comment.