More graceful handling of QSurfaceFormat::samples() with GLX.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 10 Feb 2012 09:18:03 +0000 (10:18 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 15:24:40 +0000 (16:24 +0100)
commit7dca7c3c571ec595b792bbc2d2d448aac587886a
tree00852e04d53fa8c82a58520f18d070068769f1a3
parenta541fd4d7133618a3748b952196dd69dae786e95
More graceful handling of QSurfaceFormat::samples() with GLX.

Earlier, if we asked for say 16 and the implementation only handled 4,
we defaulted to 0 (no antialiasing). Now, we instead try a
progressively lower number until we find a match.

Task-number: QTBUG-22669
Change-Id: I3d89f2a302f9c6195e2d43827006fd015d981ce7
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/platformsupport/glxconvenience/qglxconvenience.cpp