iOS: Look up OpenGL symbols using RTLD_DEFAULT instead of RTLD_NEXT

Even if the call site is in the application binary, it's safer to use
RTLD_DEFAULT as that implies using the default library search order.

Change-Id: I1b30bded92b95fc7451fcdbf7afd7444dcecea71
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
Tor Arne Vestbø 2013-05-27 15:09:32 +02:00 committed by The Qt Project
parent aedeb1cca6
commit 0fd442aebe

View File

@ -197,7 +197,7 @@ void QIOSContext::windowDestroyed(QObject *object)
QFunctionPointer QIOSContext::getProcAddress(const QByteArray& functionName)
{
return reinterpret_cast<QFunctionPointer>(dlsym(RTLD_NEXT, functionName.constData()));
return QFunctionPointer(dlsym(RTLD_DEFAULT, functionName.constData()));
}
#include "moc_qioscontext.cpp"