summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-06-09 15:07:07 +0200
committerGitHub <noreply@github.com>2023-06-09 15:07:07 +0200
commit8f51a9d2d8a88993167cd1c3b8d447bee1ca6407 (patch)
tree31ea53fda80c4e7e4476cd2a16b17de89102b9c7 /Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp
parent092773ad0cd31cb0f3d111254e4e0bdb24f2c795 (diff)
parentac48b2eea43164349e6b112604d44490a4d731c5 (diff)
Merge pull request #11699 from Pokechu22/gl-check-maximum-samples
OpenGL: Check the list of supported AA modes instead of hardcoding
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp
index 535458685c..7b31cc7f6e 100644
--- a/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsWindow.cpp
@@ -24,7 +24,7 @@
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoConfig.h"
-GraphicsWindow::GraphicsWindow(MainWindow* parent) : QDialog(parent)
+GraphicsWindow::GraphicsWindow(MainWindow* parent) : QDialog(parent), m_main_window(parent)
{
CreateMainLayout();
@@ -68,7 +68,7 @@ void GraphicsWindow::CreateMainLayout()
void GraphicsWindow::OnBackendChanged(const QString& backend_name)
{
Config::SetBase(Config::MAIN_GFX_BACKEND, backend_name.toStdString());
- VideoBackendBase::PopulateBackendInfoFromUI();
+ VideoBackendBase::PopulateBackendInfoFromUI(m_main_window->GetWindowSystemInfo());
setWindowTitle(
tr("%1 Graphics Configuration").arg(tr(g_video_backend->GetDisplayName().c_str())));