diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-07 09:30:53 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-09-07 10:09:36 +0200 |
commit | e2be53891fe218c9a1a63c2d385d149d2b1f982f (patch) | |
tree | dd88bf4a6d6f78bb97638a662e2a41c37dc206df /src/opengl/qgl_p.h | |
parent | fa0407bdb50262f8748e955cf698181cc6906542 (diff) |
Fixed tst_QGL::destroyFBOAfterContext().
Properly free QOpenGLContext in QGLContext::reset(), if we own it.
Change-Id: Ibd913283cf8b3b8a4dc6295a878a22a3989309a7
Reviewed-on: http://codereview.qt.nokia.com/4320
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index 6f418a9818..668728be20 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -299,6 +299,8 @@ public: void swapRegion(const QRegion ®ion); QOpenGLContext *guiGlContext; + bool ownContext; + void setupSharing(); QGLFormat glFormat; |