summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-08-06 13:11:07 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-08-06 11:42:15 +0000
commit819cad6670fd5ae7f36bcae9750bb180e92cb206 (patch)
tree089f52bf2bd54132d9956b42cc9e44e5b1a4e188 /src/gui/kernel/qopenglcontext.cpp
parent09d21c1decfdd58eba6c1aefe459793c5255922e (diff)
Be more explicit about the effects of swapBuffers() on the current context
Change-Id: I7ab9e4e7323d49cf19774bfd0c51f8516ecb842d Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/kernel/qopenglcontext.cpp')
-rw-r--r--src/gui/kernel/qopenglcontext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index 4efa5a40f3..a49599b4d1 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -1078,7 +1078,8 @@ QSurface *QOpenGLContext::surface() const
Swap the back and front buffers of \a surface.
Call this to finish a frame of OpenGL rendering, and make sure to
- call makeCurrent() again before you begin a new frame.
+ call makeCurrent() again before issuing any further OpenGL commands,
+ for example as part of a new frame.
*/
void QOpenGLContext::swapBuffers(QSurface *surface)
{