mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 21:01:22 -08:00
Merge pull request #6141 from lat9nq/cfg_gphcs_stack_use
configure_graphics: Prevent stack-use-after-scope
This commit is contained in:
commit
7feb490f83
@ -227,7 +227,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() try {
|
|||||||
vulkan_devices.clear();
|
vulkan_devices.clear();
|
||||||
vulkan_devices.reserve(physical_devices.size());
|
vulkan_devices.reserve(physical_devices.size());
|
||||||
for (const VkPhysicalDevice device : physical_devices) {
|
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));
|
vulkan_devices.push_back(QString::fromStdString(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user