Use glFlush() if swapBehavior is single-buffered
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Mon, 30 Jul 2012 12:21:15 +0000 (14:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Aug 2012 18:41:18 +0000 (20:41 +0200)
commit8632b262855585c750d43090dc4e1672370cc596
treef62e3a4636e1f561bec4336859303ef7e8e70d02
parent0e3dcf362460a2e4457f7059343d9720638360b8
Use glFlush() if swapBehavior is single-buffered

Otherwise, use swapBuffers()

This fixes an issue where swapbuffers() did not swap the
"back buffer" to the "front buffer" if we had single-buffered swap
behavior.
This was an issue on Windows 7 with an NVIDIA graphics card that
by default was using single-buffered mode.

Change-Id: If53f54146e4633305be3ad5158565752b6516b59
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qopenglcontext.cpp