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(); } }