VideoBackends:Metal: Properly set vsync on creation

This commit is contained in:
TellowKrinkle 2022-07-23 15:57:20 -05:00
parent 274d4679ca
commit 45ee1be6da
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Metal::Renderer::Renderer(MRCOwned<CAMetalLayer*> layer, int width, int height,
m_layer(std::move(layer)) m_layer(std::move(layer))
{ {
UpdateActiveConfig(); UpdateActiveConfig();
[m_layer setDisplaySyncEnabled:g_ActiveConfig.bVSyncActive];
} }
Metal::Renderer::~Renderer() = default; Metal::Renderer::~Renderer() = default;