cocoa: Use swapInterval from QSurfaceFormat
authorLaszlo Agocs <laszlo.agocs@digia.com>
Thu, 28 Nov 2013 21:39:56 +0000 (22:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 29 Nov 2013 09:26:02 +0000 (10:26 +0100)
commitdc9e32caeda0278658befb8bb6e944986c021620
tree844eb703a71afb3272086c5f1f3cbf7b41e13c96
parent7308af8ca74c077f1797f945cb6ec54290f63ef5
cocoa: Use swapInterval from QSurfaceFormat

xcb and windows already do this. The default value is 1 so the
behavior on cocoa does not change when setSwapInterval() is not
called.

Task-number: QTBUG-31939
Change-Id: Id9d9204c9324f1cc187c6aee4286e7da42583759
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/plugins/platforms/cocoa/qcocoaglcontext.mm