Load GLESv2 library with correct major version

Make sure GLESv2 library to be loaded even when the symlink of .so is
not installed.

Change-Id: Ie7c810a137cebc7fa59612830e3643861b532fdb
Reviewed-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Jaeyoon Jung 2015-06-05 17:01:25 +09:00 committed by Laszlo Agocs
parent 7672e1a8eb
commit 5772d7fe06

View File

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