diff --git a/src/main.cpp b/src/main.cpp index d9557221b..9208ab611 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,6 +152,7 @@ #include "config/player_profile.hpp" #include "config/stk_config.hpp" #include "config/user_config.hpp" +#include "graphics/central_settings.hpp" #include "graphics/graphics_restrictions.hpp" #include "graphics/irr_driver.hpp" #include "graphics/material_manager.hpp" @@ -1368,6 +1369,14 @@ int main(int argc, char *argv[] ) /*from queue*/ true); GUIEngine::DialogQueue::get()->pushDialog(dialog); } + else if (!CVS->isGLSL()) + { + MessageDialog *dialog = + new MessageDialog(_("Your OpenGL version appears to be too old. Please verify " + "if an update for your video driver is available. SuperTuxKart requires OpenGL 3.1 or better."), + /*from queue*/ true); + GUIEngine::DialogQueue::get()->pushDialog(dialog); + } // Note that on the very first run of STK internet status is set to // "not asked", so the report will only be sent in the next run.