summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8d36531d..b24e2c61 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -216,6 +216,15 @@ void init_engine()
exit(1);
}
+ char videoDriverName[64];
+
+ if (SDL_VideoDriverName(videoDriverName, 64)) {
+ log("Using video driver: %s", videoDriverName);
+ }
+ else {
+ log("Using video driver: unkown");
+ }
+
#ifdef USE_OPENGL
// Setup OpenGL
glViewport(0, 0, 800, 600);