More graceful handling of QSurfaceFormat::samples() with EGL.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 10 Feb 2012 08:52:47 +0000 (09:52 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 15:24:27 +0000 (16:24 +0100)
commita541fd4d7133618a3748b952196dd69dae786e95
tree43de51904e5b1d83678d89c80270085e5ef394ea
parentfb62fdac1cdb4e26388b5bacc7422ec4579b217e
More graceful handling of QSurfaceFormat::samples() with EGL.

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: I63f4b8aadf8e06713d19fdc9b9d73672162c816a
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/platformsupport/eglconvenience/qeglconvenience.cpp