Fix crash with --nographics

This commit is contained in:
Flakebi 2015-02-11 20:52:05 +01:00
parent 2ba46cff9e
commit d4f982d7dd

View File

@ -1296,7 +1296,7 @@ int main(int argc, char *argv[] )
exit(0);
}
if (GraphicsRestrictions::isDisabled(GraphicsRestrictions::GR_DRIVER_RECENT_ENOUGH))
if (!ProfileWorld::isNoGraphics() && GraphicsRestrictions::isDisabled(GraphicsRestrictions::GR_DRIVER_RECENT_ENOUGH))
{
MessageDialog *dialog =
new MessageDialog(_("Your driver version is too old. Please install "