Be more explicit about the effects of swapBuffers() on the current context

Change-Id: I7ab9e4e7323d49cf19774bfd0c51f8516ecb842d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
bb10
Tor Arne Vestbø 2018-08-06 13:11:07 +02:00
parent 09d21c1dec
commit 819cad6670
2 changed files with 4 additions and 2 deletions

View File

@ -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)
{

View File

@ -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
{