This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit 222113a3435624018122c62cf9bf76cac6885b96
Author: Mathieu Schroeter <math...@schroetersa.ch>
Date:   Sat Dec 2 23:23:35 2017 +0100

    Add log for SDL_Init failures
---
 src/blupi.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/blupi.cxx b/src/blupi.cxx
index 980073c..238c925 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -678,7 +678,10 @@ DoInit (int argc, char * argv[], bool & exit)
 
   auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
   if (res < 0)
+  {
+    SDL_Log ("Unable to initialize SDL: %s", SDL_GetError ());
     return EXIT_FAILURE;
+  }
 
   // Create a window.
   g_window = SDL_CreateWindow (

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/planetblupi.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to