Adapted for Qt 5.1.0. OpenGLES2 test.