diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ed9800f00..0c5f73b23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1582,6 +1582,7 @@ ClientLauncher::~ClientLauncher() device->drop(); } + bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args) { init_args(game_params, cmd_args); @@ -1602,11 +1603,14 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args) return true; } - if (device->getVideoDriver() == NULL) { + video::IVideoDriver *video_driver = device->getVideoDriver(); + if (video_driver == NULL) { errorstream << "Could not initialize video driver." << std::endl; return false; } + porting::setXorgClassHint(video_driver->getExposedVideoData(), "Minetest"); + /* This changes the minimum allowed number of vertices in a VBO. Default is 500. |