Qt: Actually detach video proxy

This commit is contained in:
Vicki Pfau 2022-10-11 02:36:46 -07:00
parent e1c43b9287
commit d5b66cc7e7
1 changed files with 5 additions and 0 deletions

View File

@ -1121,6 +1121,11 @@ void Window::changeRenderer() {
m_config->updateOption("videoScale");
}
} else {
std::shared_ptr<VideoProxy> proxy = m_display->videoProxy();
if (proxy) {
proxy->detach(m_controller.get());
m_display->setVideoProxy({});
}
m_controller->setFramebufferHandle(-1);
}
}