mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-03 11:28:01 -06:00
fix: device preference not getting loaded
This commit is contained in:
parent
0b15ad4157
commit
82c2d14828
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -464,9 +464,9 @@ struct CemuConfig
|
||||
// graphics
|
||||
ConfigValue<GraphicAPI> graphic_api{ kVulkan };
|
||||
std::array<uint8, 16> vk_graphic_device_uuid;
|
||||
uint64 mtl_graphic_device_uuid{0};
|
||||
uint64 mtl_graphic_device_uuid{ 0 };
|
||||
ConfigValue<int> vsync{ 0 }; // 0 = off, 1+ = depending on render backend
|
||||
ConfigValue<bool> gx2drawdone_sync {true};
|
||||
ConfigValue<bool> gx2drawdone_sync { true };
|
||||
ConfigValue<bool> render_upside_down{ false };
|
||||
ConfigValue<bool> async_compile{ true };
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user