diff options
author | Sean Harmer <[email protected]> | 2013-06-22 10:58:53 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-06-28 05:28:20 +0200 |
commit | 0fa29e2875043613e5e94e23175be1aed1e5d9cf (patch) | |
tree | 69fb601de611afd1ad8af85a75ea8b32338df57d /src/gui/opengl/qopenglvertexarrayobject.h | |
parent | f63369d8336797e1a6e66c381cfee58f36313bb8 (diff) |
Avoid crash when QOpenGLContext is destroyed before the VAO
Change-Id: I19df59453156a95c5075a065268333a74cec2476
Reviewed-by: James Turner <[email protected]>
Reviewed-by: Gunnar Sletta <[email protected]>
Reviewed-by: Giuseppe D'Angelo <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopenglvertexarrayobject.h')
-rw-r--r-- | src/gui/opengl/qopenglvertexarrayobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglvertexarrayobject.h b/src/gui/opengl/qopenglvertexarrayobject.h index 569aeea730d..83694976606 100644 --- a/src/gui/opengl/qopenglvertexarrayobject.h +++ b/src/gui/opengl/qopenglvertexarrayobject.h @@ -102,6 +102,7 @@ public: private: Q_DISABLE_COPY(QOpenGLVertexArrayObject) Q_DECLARE_PRIVATE(QOpenGLVertexArrayObject) + Q_PRIVATE_SLOT(d_func(), void _q_contextAboutToBeDestroyed()) QOpenGLVertexArrayObject(QOpenGLVertexArrayObjectPrivate &dd); }; |