diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-09-11 12:44:03 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-09-11 12:48:15 (GMT) |
commit | 49b0c307cf5ab5f18d34fbbd3e1c83949640bcf7 (patch) | |
tree | a8078b93eb2794609465e18c9a02ce4a47f524f4 /src/opengl/qwindowsurface_gl.cpp | |
parent | 799c921e27b7321f8b912428e5fb45022a6581bd (diff) | |
download | Qt-49b0c307cf5ab5f18d34fbbd3e1c83949640bcf7.zip Qt-49b0c307cf5ab5f18d34fbbd3e1c83949640bcf7.tar.gz Qt-49b0c307cf5ab5f18d34fbbd3e1c83949640bcf7.tar.bz2 |
Do not use FBO as backend for window surface in opengl engine
There are too many platform regressions when using the FBO as a backend
for the opengl engine. We need to find whether it's possible to work
around them, but for the time being, to preserve compatibility, we
only use FBOs when using the opengl2 engine.
Example of issue: Smudged text and smudged diagonal lines on Windows XP
when running with opengl engine and latest nvidia driver.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qwindowsurface_gl.cpp')
-rw-r--r-- | src/opengl/qwindowsurface_gl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp index efea369..c2f05cc 100644 --- a/src/opengl/qwindowsurface_gl.cpp +++ b/src/opengl/qwindowsurface_gl.cpp @@ -579,7 +579,8 @@ void QGLWindowSurface::updateGeometry() #ifdef QT_OPENGL_ES_2 && (QGLExtensions::glExtensions & QGLExtensions::FramebufferBlit) #endif - && (d_ptr->fbo || !d_ptr->tried_fbo)) + && (d_ptr->fbo || !d_ptr->tried_fbo) + && qt_gl_preferGL2Engine()) { d_ptr->tried_fbo = true; hijackWindow(window()); |