diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-04 07:17:00 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-04 07:17:00 (GMT) |
commit | c0b81480b2909b18ac15bdd124a562ae005c2f41 (patch) | |
tree | 8cb3feb9ed332d5211e78c6bc829c3577d098f8f /src/opengl/qgl.cpp | |
parent | 108ab335537d20bc74aa9115d46cf91243223c4e (diff) | |
download | Qt-c0b81480b2909b18ac15bdd124a562ae005c2f41.zip Qt-c0b81480b2909b18ac15bdd124a562ae005c2f41.tar.gz Qt-c0b81480b2909b18ac15bdd124a562ae005c2f41.tar.bz2 |
Rebind window surface fbo after native GL rendering
If the user called QGLFramebufferObject::bind()/release() during a
beginNativePainting() callout, the release() would reset the context's
fbo to zero, not the actual window surface fbo.
Task-number: QTBUG-6204
Reviewed-by: Tom
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r-- | src/opengl/qgl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 5ada125..94b8aa5 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -1495,6 +1495,7 @@ void QGLContextPrivate::init(QPaintDevice *dev, const QGLFormat &format) version_flags_cached = false; version_flags = QGLFormat::OpenGL_Version_None; current_fbo = 0; + default_fbo = 0; active_engine = 0; } |