Fix gles lib loading on Android

Setting the version breaks on Android as it has no .so versions, leading
to aborting apps on devices that support GLES 3.x.

Change-Id: Id4381e08a2615a0898def8f075ce5a5c5b9c7a7d
Reviewed-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-06-10 12:43:10 +02:00
parent 8bbd56c845
commit 0ce2edc56a

View File

@ -3216,7 +3216,11 @@ bool QOpenGLES3Helper::init()
m_gl.setFileName(QStringLiteral("libGLESv2d"));
# endif
# else
# ifdef Q_OS_ANDROID
m_gl.setFileName(QStringLiteral("GLESv2"));
# else
m_gl.setFileNameAndVersion(QStringLiteral("GLESv2"), 2);
# endif
# endif // Q_OS_WIN
return m_gl.load();
#else