Commit f3e745dd authored by Jan Möbius's avatar Jan Möbius

Be more verbose on renderer detection failiure on startup

List name of plugin with missing opengl extension



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16710 383ad7c9-94d9-4d36-a494-682f7c89f535
parent bf82dec6
......@@ -580,6 +580,12 @@ Core::init() {
renderManager().setActive(defaultRendererId,i);
} else {
emit log(LOGERR,tr("Default classical renderer is also not available. Trying to use any other renderer i can find!"));
// debug information for this case, print renderer count and their names
const unsigned int rendererCount = renderManager().available();
emit log(LOGERR,tr("Currently ") + QString::number(rendererCount) + tr(" renderers are available:") );
for (unsigned int i = 0 ; i < rendererCount ; ++i )
emit log(LOGERR, tr("Renderer ") + QString::number(i) + ": " + renderManager()[i]->name );
}
} else {
......
......@@ -1972,7 +1972,7 @@ void Core::loadPlugin(const QString& _filename,const bool _silent, QString& _lic
QMetaObject::invokeMethod(plugin,"checkOpenGL", Qt::DirectConnection, Q_RETURN_ARG(QString,openGLCheck) ) ;
if ( openGLCheck != "" ) {
emit log(LOGERR,tr("Error: Insufficient OpenGL capabilities!"));
emit log(LOGERR,tr("Error: Insufficient OpenGL capabilities in Plugin") + rendererNameString + " !");
emit log(LOGERR,openGLCheck);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment