Warn if OpenGL is too old
This commit is contained in:
parent
98671b620d
commit
ad68d9a866
@ -152,6 +152,7 @@
|
|||||||
#include "config/player_profile.hpp"
|
#include "config/player_profile.hpp"
|
||||||
#include "config/stk_config.hpp"
|
#include "config/stk_config.hpp"
|
||||||
#include "config/user_config.hpp"
|
#include "config/user_config.hpp"
|
||||||
|
#include "graphics/central_settings.hpp"
|
||||||
#include "graphics/graphics_restrictions.hpp"
|
#include "graphics/graphics_restrictions.hpp"
|
||||||
#include "graphics/irr_driver.hpp"
|
#include "graphics/irr_driver.hpp"
|
||||||
#include "graphics/material_manager.hpp"
|
#include "graphics/material_manager.hpp"
|
||||||
@ -1368,6 +1369,14 @@ int main(int argc, char *argv[] )
|
|||||||
/*from queue*/ true);
|
/*from queue*/ true);
|
||||||
GUIEngine::DialogQueue::get()->pushDialog(dialog);
|
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
|
// 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.
|
// "not asked", so the report will only be sent in the next run.
|
||||||
|
Loading…
Reference in New Issue
Block a user