Removed obsolete QT_OPENGL_ES_2 flags

Check for ES using isOpenGLES() instead. The method was introduced in
Qt 5.3.

Change-Id: Id21659fcaa1e1854c07df38147ad666207778cb2
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>