More graceful choosing of EGL configs.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 27 Jul 2011 10:07:23 +0000 (12:07 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Wed, 27 Jul 2011 10:17:53 +0000 (12:17 +0200)
commitb03f5fd47631d234d140b5a792eff80286c91e92
treed3f447877d571a6525191e36d0bc1e20ec81e406
parent233411bc1e69ef0ea72b173a7f6b26124c346857
More graceful choosing of EGL configs.

If someone asks for a depth buffer of size 32, we should try to give
them a smaller depth buffer if none of that size is available. Also,
don't unconditionally read the alpha size of the  configure
attributes, since it might have been removed when reducing the config.

Change-Id: If2f9d49c1cc3ded015384f9551b19cd15c523ce3
Reviewed-on: http://codereview.qt.nokia.com/2269
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/platformsupport/eglconvenience/qeglconvenience.cpp