Restored old flushing behavior in -graphicssystem opengl on desktop.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 5 Jan 2011 07:25:56 +0000 (08:25 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Fri, 7 Jan 2011 06:56:31 +0000 (07:56 +0100)
commite185e5f008f6852bd7a79d74262717c8e377b918
treee8eb972abaa4db4e35c47c0415f81c0c23ee2f13
parent9cc21c043238dc7576a465c9d236e8968fd8c549
Restored old flushing behavior in -graphicssystem opengl on desktop.

Change 284211ccbd2cbd recently introduced a fix for EGL, to prevent
flushing when nothing has been rendered into the back buffer. However,
the skip should only be done when there's no partial update support in
the window surface. If there is partial update support we can still
flush as usual.

Reviewed-by: Gunnar Sletta
src/opengl/qwindowsurface_gl.cpp