diff options
| author | Stenzek <stenzek@users.noreply.github.com> | 2018-02-20 01:19:45 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-20 01:19:45 +1000 |
| commit | 93c502fef8980bf6f6db7316738857bb0818debf (patch) | |
| tree | 7e14390a62a600c8ec89ad39a77919748d6152f1 /Source/Core/DolphinNoGUI/MainNoGUI.cpp | |
| parent | 456c2f42c350e15402eea169a2cc87878327c1fc (diff) | |
| parent | 0dddaf9d7d0837a574c6e8d255bebb3947f09a0e (diff) | |
Merge pull request #6330 from stenzek/resizing
Improve handling of surface change/resize events in graphics backends
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/MainNoGUI.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index c78a67589a..def748832f 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -321,12 +321,8 @@ class PlatformX11 : public Platform { last_window_width = event.xconfigure.width; last_window_height = event.xconfigure.height; - - // We call Renderer::ChangeSurface here to indicate the size has changed, - // but pass the same window handle. This is needed for the Vulkan backend, - // otherwise it cannot tell that the window has been resized on some drivers. if (g_renderer) - g_renderer->ChangeSurface(s_window_handle); + g_renderer->ResizeSurface(last_window_width, last_window_height); } } break; |
