ref: 0a2e158e737121ba4906a687c13214e4b090bd08
parent: 201ba4b81853750c9ee262140c795d87b23ae24d
author: Simon Howard <[email protected]>
date: Sun Oct 22 13:12:39 EDT 2006
Catch failure to initialise video when calling SDL_Init. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 709
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1034,7 +1034,10 @@
SDL_Event dummy;
int flags = 0;
- SDL_Init(SDL_INIT_VIDEO);
+ if (SDL_Init(SDL_INIT_VIDEO) < 0)
+ {
+ I_Error("Failed to initialise video: %s", SDL_GetError());
+ }
// Check for command-line video-related parameters.