mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 06:21:19 +12:00
latte: rename metal specific options
This commit is contained in:
parent
feba1aa7ba
commit
4311a41f34
11 changed files with 57 additions and 53 deletions
|
@ -1091,11 +1091,13 @@ void GeneralSettings2::StoreConfig()
|
|||
{
|
||||
if (selection != wxNOT_FOUND)
|
||||
{
|
||||
#if ENABLE_METAL
|
||||
const auto* info = (wxMetalUUID*)m_graphic_device->GetClientObject(selection);
|
||||
if (info)
|
||||
config.mtl_graphic_device_uuid = info->GetDeviceInfo().uuid;
|
||||
else
|
||||
config.mtl_graphic_device_uuid = {};
|
||||
#endif
|
||||
}
|
||||
else
|
||||
config.mtl_graphic_device_uuid = {};
|
||||
|
@ -1638,9 +1640,9 @@ void GeneralSettings2::HandleGraphicsApiSelection()
|
|||
m_vsync->Select(selection);
|
||||
|
||||
m_graphic_device->Enable();
|
||||
auto devices = MetalRenderer::GetDevices();
|
||||
m_graphic_device->Clear();
|
||||
#if ENABLE_METAL
|
||||
auto devices = MetalRenderer::GetDevices();
|
||||
if(!devices.empty())
|
||||
{
|
||||
for (const auto& device : devices)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue