mirror of https://github.com/mgba-emu/mgba.git
Qt: Actually detach video proxy
This commit is contained in:
parent
e1c43b9287
commit
d5b66cc7e7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue