소스 검색

Merge pull request #6141 from lat9nq/cfg_gphcs_stack_use

configure_graphics: Prevent stack-use-after-scope
LC 5 년 전
부모
커밋
7feb490f83
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/yuzu/configuration/configure_graphics.cpp

+ 1 - 1
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));
     }