vcl/source/opengl/win/context.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
New commits: commit af415dc03f34cd89f9e6319971d00edb76ccba85 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Sep 6 16:43:51 2022 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Tue Sep 6 18:57:11 2022 +0200 This can't be null after the null handler above Change-Id: I70c0d28fe5d817fbdbc9ad499e4e6e729f81399a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139510 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/vcl/source/opengl/win/context.cxx b/vcl/source/opengl/win/context.cxx index 5031ec6f0049..3111048a2e23 100644 --- a/vcl/source/opengl/win/context.cxx +++ b/vcl/source/opengl/win/context.cxx @@ -144,12 +144,9 @@ void WinOpenGLContext::initWindow() m_pChildWindow = VclPtr<SystemChildWindow>::Create(mpWindow, 0, &winData, false); } - if (m_pChildWindow) - { - InitChildWindow(m_pChildWindow.get()); - const SystemEnvData* sysData(m_pChildWindow->GetSystemData()); - m_aGLWin.hWnd = sysData->hWnd; - } + InitChildWindow(m_pChildWindow.get()); + const SystemEnvData* sysData(m_pChildWindow->GetSystemData()); + m_aGLWin.hWnd = sysData->hWnd; m_aGLWin.hDC = GetDC(m_aGLWin.hWnd); }