From 773e33af43001fbc6a047ee83e4729e6ba227998 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 7 Feb 2015 15:08:10 +0100 Subject: QOpenGLWidget/Window: improve docs for the dtor Remove a typo and add the standard sentence about a dtor. Change-Id: Ie21ad6d2e83977705ea43fdc872d08f496a32376 Reviewed-by: Laszlo Agocs --- src/gui/kernel/qopenglwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/kernel/qopenglwindow.cpp') diff --git a/src/gui/kernel/qopenglwindow.cpp b/src/gui/kernel/qopenglwindow.cpp index 741df78407..f12032b171 100644 --- a/src/gui/kernel/qopenglwindow.cpp +++ b/src/gui/kernel/qopenglwindow.cpp @@ -345,7 +345,7 @@ QOpenGLWindow::QOpenGLWindow(QOpenGLContext *shareContext, UpdateBehavior update resources belonging to the context provided by this window. \warning if you have objects wrapping OpenGL resources (such as - QOpenGLBuffer, QOpenGLShaderProgram, etc.), as members of a QOpenGLWindow + QOpenGLBuffer, QOpenGLShaderProgram, etc.) as members of a QOpenGLWindow subclass, you may need to add a call to makeCurrent() in that subclass' destructor as well. Due to the rules of C++ object destruction, those objects will be destroyed \e{before} calling this function (but after that the -- cgit v1.2.3