From e8f290af62ad06212775d0aeb3940d8a1dcf22c5 Mon Sep 17 00:00:00 2001 From: Sergey Dubitskiy Date: Tue, 31 Jan 2012 16:05:17 +1000 Subject: Bugfix for: Destuction of OpenGL context in QT4.8 leads to segfault. Task-number: QTBUG-23446 Change-Id: Iee9dbe567c33f65d6ec1e43dabf64a627d3d09ee Reviewed-by: Danny Pope --- src/threed/painting/qglext_p.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threed/painting/qglext_p.h b/src/threed/painting/qglext_p.h index c2999c803..34a619f2c 100644 --- a/src/threed/painting/qglext_p.h +++ b/src/threed/painting/qglext_p.h @@ -125,6 +125,7 @@ public: void *value(const QGLContext *context); void cleanup(const QGLContext *context, void *value); virtual void freeResource(void *value) = 0; + virtual void contextDeleted(const QGLContext *) {} protected: QList m_groups; -- cgit v1.2.3