summaryrefslogtreecommitdiff
path: root/src/opengl/qgl.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/opengl/qgl.cpp
parent09d21c1decfdd58eba6c1aefe459793c5255922e (diff)
downloadqtbase-819cad6670fd5ae7f36bcae9750bb180e92cb206.tar.gz
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/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 1132411d42..e136ddcff2 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -3603,7 +3603,8 @@ void QGLContext::makeCurrent()
\fn void QGLContext::swapBuffers() const
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 QGLContext::swapBuffers() const
{