From a7a7ac53c1172b9195606bf8e093c9dd4733ccb6 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 20 Feb 2024 12:44:12 +0100 Subject: [PATCH] also fix this, it bothers me --- src/frontend/qt_sdl/Screen.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/qt_sdl/Screen.cpp b/src/frontend/qt_sdl/Screen.cpp index 3e68b1bf..a4e59136 100644 --- a/src/frontend/qt_sdl/Screen.cpp +++ b/src/frontend/qt_sdl/Screen.cpp @@ -683,16 +683,16 @@ ScreenPanelGL::~ScreenPanelGL() bool ScreenPanelGL::createContext() { - std::optional windowInfo = getWindowInfo(); + std::optional windowinfo = getWindowInfo(); // if our parent window is parented to another window, we will // share our OpenGL context with that window MainWindow* parentwin = (MainWindow*)parentWidget()->parentWidget(); if (parentwin) { - if (windowInfo.has_value()) + if (windowinfo.has_value()) { - glContext = parentwin->getOGLContext()->CreateSharedContext(*getWindowInfo()); + glContext = parentwin->getOGLContext()->CreateSharedContext(*windowinfo); glContext->DoneCurrent(); } } @@ -701,9 +701,9 @@ bool ScreenPanelGL::createContext() std::array versionsToTry = { GL::Context::Version{GL::Context::Profile::Core, 4, 3}, GL::Context::Version{GL::Context::Profile::Core, 3, 2}}; - if (windowInfo.has_value()) + if (windowinfo.has_value()) { - glContext = GL::Context::Create(*getWindowInfo(), versionsToTry); + glContext = GL::Context::Create(*windowinfo, versionsToTry); glContext->DoneCurrent(); } }