Purge some unused code for the OpenGL library name
We had a global static, a setter for it (that's nowhere used within Qt code) and a getter for it whose only use was commented out. Neither was declared in any header; the getter's commented-out client had a local extern declaration at the point of (non-)use. Found while reviewing a change to the next few lines of code after the commented-out use of the getter. Change-Id: I393d56219cb7dd7cf836ca80e1bdd605a2914003 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>bb10
parent
0dae641331
commit
15b1c3fd9b
|
|
@ -5195,25 +5195,6 @@ void QGLWidgetPrivate::cleanupColormaps()
|
|||
{
|
||||
}
|
||||
|
||||
Q_GLOBAL_STATIC(QString, qt_gl_lib_name)
|
||||
|
||||
void qt_set_gl_library_name(const QString& name)
|
||||
{
|
||||
qt_gl_lib_name()->operator=(name);
|
||||
}
|
||||
|
||||
const QString qt_gl_library_name()
|
||||
{
|
||||
if (qt_gl_lib_name()->isNull()) {
|
||||
# if defined(QT_OPENGL_ES_2)
|
||||
return QLatin1String("GLESv2");
|
||||
# else
|
||||
return QLatin1String("GL");
|
||||
# endif
|
||||
}
|
||||
return *qt_gl_lib_name();
|
||||
}
|
||||
|
||||
void QGLContextGroup::addShare(const QGLContext *context, const QGLContext *share) {
|
||||
Q_ASSERT(context && share);
|
||||
if (context->d_ptr->group == share->d_ptr->group)
|
||||
|
|
|
|||
|
|
@ -648,8 +648,6 @@ QFunctionPointer QGLXContext::getProcAddress(const char *procName)
|
|||
#endif
|
||||
{
|
||||
#if QT_CONFIG(library)
|
||||
extern const QString qt_gl_library_name();
|
||||
// QLibrary lib(qt_gl_library_name());
|
||||
QLibrary lib(QLatin1String("GL"));
|
||||
if (!lib.load())
|
||||
lib.setFileNameAndVersion(QLatin1String("GL"), 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue