summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4f31f0c0..d1e26e04 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -130,6 +130,9 @@ void initialize()
gameHandler = new GameHandler();
connectionHandler = new ConnectionHandler();
+ // Make SDL use a dummy videodriver so that it doesn't require an X server
+ putenv("SDL_VIDEODRIVER=dummy");
+
// Initialize SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) {
LOG_FATAL("SDL_Init: " << SDL_GetError(), 0)