From e2be53891fe218c9a1a63c2d385d149d2b1f982f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Wed, 7 Sep 2011 09:30:53 +0200 Subject: Fixed tst_QGL::destroyFBOAfterContext(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jørgen Lind --- src/opengl/qgl_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/opengl/qgl_p.h') 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; -- cgit v1.2.3