summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 63b18be..a4fc5a2 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -14,6 +14,7 @@ const bool VULKAN_DEBUG_REPORT = true;
GLFWwindow *window = nullptr;
VkInstance vkInstance = nullptr;
VkPhysicalDevice vkPhysicalDevice = nullptr;
+VkPhysicalDeviceProperties vkPhysicalDeviceProperties;
VkDevice vkDevice = nullptr;
VkQueue graphicsQueue = nullptr;
VkQueue presentQueue = nullptr;
@@ -299,9 +300,8 @@ void InitVulkan() {
}
vkPhysicalDevice = device;
- VkPhysicalDeviceProperties deviceProps;
- vkGetPhysicalDeviceProperties(vkPhysicalDevice, &deviceProps);
- printf("Selected VkPhysicalDevice: %s\n", deviceProps.deviceName);
+ vkGetPhysicalDeviceProperties(vkPhysicalDevice, &vkPhysicalDeviceProperties);
+ printf("Selected VkPhysicalDevice: %s\n", vkPhysicalDeviceProperties.deviceName);
break;
}
assert(vkPhysicalDevice != nullptr && "Failed to find suitable physical device");