mirror of https://github.com/libsdl-org/SDL
Fix testoffscreen.c: bool literal returned from 'main'
This commit is contained in:
parent
eeb465e2fc
commit
6fca867ffe
|
@ -113,7 +113,7 @@ int main(int argc, char *argv[])
|
|||
if (!SDL_InitSubSystem(SDL_INIT_VIDEO)) {
|
||||
SDL_Log("Couldn't initialize the offscreen video driver: %s\n",
|
||||
SDL_GetError());
|
||||
return SDL_FALSE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* If OPENGL fails to init it will fallback to using a framebuffer for rendering */
|
||||
|
@ -121,7 +121,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (!window) {
|
||||
SDL_Log("Couldn't create window: %s\n", SDL_GetError());
|
||||
return SDL_FALSE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
renderer = SDL_CreateRenderer(window, NULL);
|
||||
|
@ -129,7 +129,7 @@ int main(int argc, char *argv[])
|
|||
if (!renderer) {
|
||||
SDL_Log("Couldn't create renderer: %s\n",
|
||||
SDL_GetError());
|
||||
return SDL_FALSE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
SDL_RenderClear(renderer);
|
||||
|
|
Loading…
Reference in New Issue