diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-08-19 10:04:51 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-19 11:05:26 +0200 |
commit | 984982c41f15a838610858f235e8a39389cc4427 (patch) | |
tree | c026cf63abca530e29696a2eaf5b2fb09ca2ed92 /src/plugins/platforms/windows | |
parent | 78169e6b06db136037b70c99ca46b82d4c311c3e (diff) |
QSurfaceFormat: Add missing 'profile' accessors, fix detaching.
No longer initialize FormatOptions to SwapBehaviour::DoubleBuffer
in the constructor as it is a different enumeration.
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Change-Id: Id69e0345d4395ee88532ac3ee0e89c35e6c5b083
Reviewed-on: http://codereview.qt.nokia.com/3254
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.cpp b/src/plugins/platforms/windows/qwindowsglcontext.cpp index e67f61a792..e94b4ffdf2 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.cpp +++ b/src/plugins/platforms/windows/qwindowsglcontext.cpp @@ -572,10 +572,7 @@ static HGLRC createContext(const QOpenGLStaticContext &staticContext, } if ((staticContext.majorVersion == 3 && staticContext.minorVersion >= 2) || staticContext.majorVersion > 3) { - const QSurfaceFormat::OpenGLContextProfile profile = QSurfaceFormat::NoProfile; - // format.profile(): TODO: Not implemented yet. - Q_UNUSED(format); - switch (profile) { + switch (format.profile()) { case QSurfaceFormat::NoProfile: break; case QSurfaceFormat::CoreProfile: |