diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-23 13:24:19 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-26 06:26:01 (GMT) |
commit | 372392153a2c1de69d9257753ba84f44cbbd9cf1 (patch) | |
tree | 162f49ffbc677af4fbc56c2ef9c83984ecf15c28 /src/opengl/qwindowsurface_gl.cpp | |
parent | 8669823d5a5c0f26ff3909ad9c83fa99a63a89f3 (diff) | |
download | Qt-372392153a2c1de69d9257753ba84f44cbbd9cf1.zip Qt-372392153a2c1de69d9257753ba84f44cbbd9cf1.tar.gz Qt-372392153a2c1de69d9257753ba84f44cbbd9cf1.tar.bz2 |
Enable QX11GLWindowSurface using "-graphicssystem x11gl" option
When the OpenGL graphics system is in X11GL mode, it will use the
QX11GLWindowSurface for all widgets except QGraphicsViews with the
FullViewportUpdate update mode set, where it will use the regular
QGLWindowSurface, as this is probabbly faster.
QX11GLWindowSurface differs from QGLWindowSurface because it allows
accelerated scrolling and partial updates, while still being using
opengl to do rendering.
Task-number: QT-280
Task-number: QT-2625
Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qwindowsurface_gl.cpp')
-rw-r--r-- | src/opengl/qwindowsurface_gl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp index bcb96fa..92a347b 100644 --- a/src/opengl/qwindowsurface_gl.cpp +++ b/src/opengl/qwindowsurface_gl.cpp @@ -94,8 +94,8 @@ QT_BEGIN_NAMESPACE #ifdef Q_WS_WIN extern Q_GUI_EXPORT bool qt_win_owndc_required; #endif -QGLGraphicsSystem::QGLGraphicsSystem() - : QGraphicsSystem() +QGLGraphicsSystem::QGLGraphicsSystem(bool useX11GL) + : QGraphicsSystem(), m_useX11GL(useX11GL) { QGLWindowSurface::surfaceFormat.setSampleBuffers(true); #if defined(Q_WS_X11) && !defined(QT_OPENGL_ES) |