From 94d71bb59331aed54c28fa38d4c6808227bfcc3c Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Sat, 24 Feb 2024 19:04:23 -0800 Subject: [PATCH] Add error message for renderer --- sdl_host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdl_host.c b/sdl_host.c index cdb5f45..eef77e2 100644 --- a/sdl_host.c +++ b/sdl_host.c @@ -34,7 +34,7 @@ int sdl_host_main(void) { ); if (sdl_host_window == NULL) { - printf("could not load window! sdl error: %s\n", SDL_GetError()); + printf("could not create window! sdl error: %s\n", SDL_GetError()); result = 1; goto window_done; } @@ -42,6 +42,7 @@ int sdl_host_main(void) { // create renderer sdl_host_renderer = SDL_CreateRenderer(sdl_host_window, -1, 0); if (sdl_host_renderer == NULL) { + printf("could not create renderer! sdl error: %s\n", SDL_GetError()); result = 1; goto renderer_done; }