Add error message for renderer
This commit is contained in:
parent
9a2cb892f1
commit
94d71bb593
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user