//if we get an openGL error, display it properly in a user visible way.
//Qt qFatals when failing to make an openGL context; we can't catch that earlier, so we do it in the error handler and display an error message
//otherwise we continually get bug reports
if(type==QtFatalMsg&&message==QLatin1String("Could not initialize GLX")){
QMessageBox::critical(nullptr,i18n("Plasma Failed To Start"),i18n("Plasma is unable to start as it could not correctly use OpenGL 2.\nPlease confirm your drivers are installed correctly."));
}
//we have to reimplement the behaviour of the default message handler, as now we are always overriding it, and there's no way to access it