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:
parent
aedeb1cca6
commit
0fd442aebe
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user