diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-03 16:38:25 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-03 18:13:51 +0200 |
commit | 0bb2b6213518fdc56181b0ab1d6a6635c324dfc2 (patch) | |
tree | 3f5846c2a1d1c1efb52533fd63a9c84d463823a0 /src/plugins/platforms/windows/qwindowsglcontext.cpp | |
parent | 38ea5428c4d84fc71aa80f4b312500cad8ccc8a5 (diff) |
windows: Fix dynamic opengl build
Cannot call WGL or EGL functions directly anymore.
Change-Id: I0d5c6217679d87a2092c945a9b841dfd7b6c299a
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsglcontext.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.cpp b/src/plugins/platforms/windows/qwindowsglcontext.cpp index 1ed27f545d..869df26ef6 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.cpp +++ b/src/plugins/platforms/windows/qwindowsglcontext.cpp @@ -1207,8 +1207,8 @@ QWindowsGLContext::~QWindowsGLContext() bool QWindowsGLContext::updateObtainedParams(HDC hdc, int *obtainedSwapInterval) { - HGLRC prevContext = wglGetCurrentContext(); - HDC prevSurface = wglGetCurrentDC(); + HGLRC prevContext = QOpenGLStaticContext::opengl32.wglGetCurrentContext(); + HDC prevSurface = QOpenGLStaticContext::opengl32.wglGetCurrentDC(); if (!QOpenGLStaticContext::opengl32.wglMakeCurrent(hdc, m_renderingContext)) { qWarning("Failed to make context current."); |