summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2020-05-24 17:35:39 +1000
committerStenzek <stenzek@gmail.com>2020-05-24 17:39:56 +1000
commitff92357b63d2dc978b25aa5c73bbe76a72786f6b (patch)
treec7c627d54cd721c0c2cea6ce657b6b5034b34e74 /Source/Core/DolphinQt/MainWindow.cpp
parent393ce529af87b1b11877eb6e376c54592f4160ee (diff)
Core: Use window instead of surface for ControllerInterface updates
Fixes crashes with Vulkan on macOS.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index a5180a33aa..8b8eb37f40 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1083,7 +1083,7 @@ void MainWindow::HideRenderWidget(bool reinit)
// The controller interface will still be registered to the old render widget, if the core
// has booted. Therefore, we should re-bind it to the main window for now. When the core
// is next started, it will be swapped back to the new render widget.
- g_controller_interface.ChangeWindow(GetWindowSystemInfo(windowHandle()).render_surface);
+ g_controller_interface.ChangeWindow(GetWindowSystemInfo(windowHandle()).render_window);
}
}