fix: device preference not getting loaded

This commit is contained in:
Samuliak 2025-01-12 13:08:30 +01:00
parent 0b15ad4157
commit 82c2d14828
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -477,7 +477,7 @@ private:
MetalPerformanceMonitor m_performanceMonitor;
// Metal objects
MTL::Device* m_device;
MTL::Device* m_device = nullptr;
MTL::CommandQueue* m_commandQueue;
// Feature support

View file

@ -214,7 +214,7 @@ void CemuConfig::Load(XMLConfigParser& parser)
auto graphic = parser.get("Graphic");
graphic_api = graphic.get("api", kOpenGL);
graphic.get("vkDevice", vk_graphic_device_uuid);
graphic.get("mtlDevice", mtl_graphic_device_uuid);
mtl_graphic_device_uuid = graphic.get("mtlDevice", 0);
vsync = graphic.get("VSync", 0);
gx2drawdone_sync = graphic.get("GX2DrawdoneSync", true);
upscale_filter = graphic.get("UpscaleFilter", kBicubicHermiteFilter);