summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-30 11:55:06 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-30 11:58:09 (GMT)
commitd279e5d3ee808f4faeb5408dc66740b7fffab84f (patch)
treedfe0e5e4be35e7c973042dee6cbd5e79c90df9e0
parent468af8f1dd1c9bc98919e8f407c9676e880249f9 (diff)
downloadQt-d279e5d3ee808f4faeb5408dc66740b7fffab84f.zip
Qt-d279e5d3ee808f4faeb5408dc66740b7fffab84f.tar.gz
Qt-d279e5d3ee808f4faeb5408dc66740b7fffab84f.tar.bz2
Fix GL extention function pointer lookups in testlite
For some reason, if the application doesn't link against QtOpenGL then the qt_gl_library_name() symbol will be missing. For now just hard-code the library name to "GL".
-rw-r--r--src/plugins/platforms/testlite/qglxintegration.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/testlite/qglxintegration.cpp b/src/plugins/platforms/testlite/qglxintegration.cpp
index c21c3aa..d4383ef 100644
--- a/src/plugins/platforms/testlite/qglxintegration.cpp
+++ b/src/plugins/platforms/testlite/qglxintegration.cpp
@@ -296,7 +296,8 @@ void* QGLXGLContext::getProcAddress(const QString& procName)
#endif
{
extern const QString qt_gl_library_name();
- QLibrary lib(qt_gl_library_name());
+// QLibrary lib(qt_gl_library_name());
+ QLibrary lib(QLatin1String("GL"));
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
}
}