diff --git a/src/visualisations/visualisationcontainer.cpp b/src/visualisations/visualisationcontainer.cpp index fe928d2b1..61c393e4d 100644 --- a/src/visualisations/visualisationcontainer.cpp +++ b/src/visualisations/visualisationcontainer.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -138,6 +139,13 @@ void VisualisationContainer::SetEngine(GstEngine* engine) { void VisualisationContainer::showEvent(QShowEvent* e) { if (!initialised_) { + if (!QGLFormat::hasOpenGL()) { + hide(); + QMessageBox::warning(this, tr("Clementine Visualization"), + tr("Your system is missing OpenGL support, visualizations are unavailable."), + QMessageBox::Close); + return; + } Init(); initialised_ = true; }