VERY experimental Nintendo Switch 2 emulator
C++
configure_graphics: Prevent stack-use-after-scope
lat9nq140f317b0185
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cppindex 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));}