summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsglcontext.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-06-23 16:45:11 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-07-07 12:55:16 +0200
commite7056a8969cf9445ff84c7362137f792ef207ae2 (patch)
treef1e5ced5d3d22cd5db9376cd01f362d2b3dad87c /src/plugins/platforms/windows/qwindowsglcontext.h
parentd8103d0e629f1d8f6c2b9d5b0dcc95b6ff20b99d (diff)
Add context adoption support for WGL
This is trickier than the GLX and EGL implementations due to the way pixel formats, windows and contexts work. Apart from some restrictions, it should be fully functional nonetheless. Add also some proper documentation. Change-Id: Ia6e3eb1ab2701e439b8621b9092c2b0934ff2151 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsglcontext.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsglcontext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h
index dcc31c6197..d92d94aa1a 100644
--- a/src/plugins/platforms/windows/qwindowsglcontext.h
+++ b/src/plugins/platforms/windows/qwindowsglcontext.h
@@ -258,6 +258,7 @@ public:
private:
inline void releaseDCs();
+ bool updateObtainedParams(HDC hdc, int *obtainedSwapInterval = 0);
QOpenGLStaticContext *m_staticContext;
QOpenGLContext *m_context;
@@ -268,6 +269,7 @@ private:
int m_pixelFormat;
bool m_extensionsUsed;
int m_swapInterval;
+ bool m_ownsContext;
};
QT_END_NAMESPACE