Added missing error return in test program.
This commit is contained in:
parent
9c370afe9a
commit
085f0f8b59
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||||
SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s", SDL_GetError());
|
SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s", SDL_GetError());
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
total = SDL_GetNumVideoDisplays();
|
total = SDL_GetNumVideoDisplays();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue