From 984982c41f15a838610858f235e8a39389cc4427 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 19 Aug 2011 10:04:51 +0200 Subject: QSurfaceFormat: Add missing 'profile' accessors, fix detaching. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No longer initialize FormatOptions to SwapBehaviour::DoubleBuffer in the constructor as it is a different enumeration. Reviewed-by: Samuel Rødal Change-Id: Id69e0345d4395ee88532ac3ee0e89c35e6c5b083 Reviewed-on: http://codereview.qt.nokia.com/3254 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/plugins/platforms/windows/qwindowsglcontext.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/platforms/windows') 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: -- cgit v1.2.3