Fixed missing way of choosing EGL renderable type with QSurfaceFormat.
authorSamuel Rødal <samuel.rodal@nokia.com>
Sat, 23 Jun 2012 15:24:37 +0000 (17:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 22:46:35 +0000 (00:46 +0200)
commit6874a33a75154400e8cd0424cec6d464b133c7cc
tree7bbc58b8a560522001a97180f03d191839d1d7b4
parentcd853c0ad7a74a81aa831968c7ded60874b161ae
Fixed missing way of choosing EGL renderable type with QSurfaceFormat.

This has been long overdue, since EGL now lets you choose between
desktop and ES based OpenGL. We also add OpenVG for those who want to
use raw OpenVG with a QOpenGLContext. The underlying EGL API for using
OpenGL / OpenVG is the same, with eglMakeCurrent() and eglSwapBuffers().

Change-Id: Ib0146b3fde5fe632069ebf99e7712f496ee7ea4d
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/kernel/qsurfaceformat.cpp
src/gui/kernel/qsurfaceformat.h
src/platformsupport/eglconvenience/qeglconvenience.cpp
src/platformsupport/eglconvenience/qeglconvenience_p.h
src/platformsupport/eglconvenience/qeglplatformcontext.cpp