diff options
-rw-r--r-- | src/i_video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/i_video.c b/src/i_video.c index 02b0b62e..c45d3640 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -1034,7 +1034,10 @@ void I_InitGraphics(void) 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. |