summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2012-07-19 10:40:25 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-07-27 16:07:01 (GMT)
commit90699addfaba9d677213371a25484eb28bca026f (patch)
treee3f36e360d4c73ffac866fb14aa729c6d87eff1e /src/opengl
parentfa80ee3fdcb6f70d7eb89b097fcbcd7039fb0520 (diff)
downloadQt-90699addfaba9d677213371a25484eb28bca026f.zip
Qt-90699addfaba9d677213371a25484eb28bca026f.tar.gz
Qt-90699addfaba9d677213371a25484eb28bca026f.tar.bz2
Use improved QLibrary search heuristics in qgl_x11.cpp
Change-Id: Ie806a4147d2d29eef235dd7cb0ef95b8ecf68e3d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl_x11.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qgl_x11.cpp b/src/opengl/qgl_x11.cpp
index 5f33acb..f76cfea 100644
--- a/src/opengl/qgl_x11.cpp
+++ b/src/opengl/qgl_x11.cpp
@@ -372,6 +372,7 @@ void* qglx_getProcAddress(const char* procName)
#if !defined(QT_NO_LIBRARY)
extern const QString qt_gl_library_name();
QLibrary lib(qt_gl_library_name());
+ lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
#endif
}
@@ -396,6 +397,7 @@ void* qglx_getProcAddress(const char* procName)
if (!procAddress) {
extern const QString qt_gl_library_name();
QLibrary lib(qt_gl_library_name());
+ lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
procAddress = lib.resolve(procName);
}
#endif
@@ -1207,6 +1209,7 @@ void *QGLContext::getProcAddress(const QString &proc) const
#if !defined(QT_NO_LIBRARY)
extern const QString qt_gl_library_name();
QLibrary lib(qt_gl_library_name());
+ lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
#endif
}