From 2944d73586e9df01ae34bef77c8ec44722dd093b Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 27 Feb 2020 23:12:05 +0100 Subject: [PATCH] Fix instance extensions/layers query --- src/Nazara/VulkanRenderer/Wrapper/Loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/VulkanRenderer/Wrapper/Loader.cpp b/src/Nazara/VulkanRenderer/Wrapper/Loader.cpp index b5f0df100..c110a737b 100644 --- a/src/Nazara/VulkanRenderer/Wrapper/Loader.cpp +++ b/src/Nazara/VulkanRenderer/Wrapper/Loader.cpp @@ -17,7 +17,7 @@ namespace Nz // First, query physical device count UInt32 propertyCount = 0; // Remember, Nz::UInt32 is a typedef on uint32_t - s_lastErrorCode = vkEnumerateInstanceExtensionProperties(layerName, &propertyCount, properties->data()); + s_lastErrorCode = vkEnumerateInstanceExtensionProperties(layerName, &propertyCount, nullptr); if (s_lastErrorCode != VkResult::VK_SUCCESS) { NazaraError("Failed to get instance extension properties count: " + TranslateVulkanError(s_lastErrorCode)); @@ -42,7 +42,7 @@ namespace Nz // First, query physical device count UInt32 propertyCount = 0; // Remember, Nz::UInt32 is a typedef on uint32_t - s_lastErrorCode = vkEnumerateInstanceLayerProperties(&propertyCount, properties->data()); + s_lastErrorCode = vkEnumerateInstanceLayerProperties(&propertyCount, nullptr); if (s_lastErrorCode != VkResult::VK_SUCCESS) { NazaraError("Failed to get instance layer properties count: " + TranslateVulkanError(s_lastErrorCode));