aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2021-04-04 18:16:50 -0400
committerGitHub <noreply@github.com>2021-04-04 18:16:50 -0400
commit7feb490f83904c7a2724beb89cce20ec7292b07b (patch)
tree6ec5a0a8e3fd86ade87bcf8506b8fa685e2ead7b
parent69b2dbdffd68d232d37a7c30a8ca01aee4f0b7c7 (diff)
parent33ed02a239752b7db26e89b5d707a0f28274bbc8 (diff)
Merge pull request #6141 from lat9nq/cfg_gphcs_stack_use
configure_graphics: Prevent stack-use-after-scope
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index 9ff32aec4d..49acc48b22 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -227,7 +227,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() try {
vulkan_devices.clear();
vulkan_devices.reserve(physical_devices.size());
for (const VkPhysicalDevice device : physical_devices) {
- const char* const name = vk::PhysicalDevice(device, dld).GetProperties().deviceName;
+ const std::string name = vk::PhysicalDevice(device, dld).GetProperties().deviceName;
vulkan_devices.push_back(QString::fromStdString(name));
}