Fix testoffscreen.c: bool literal returned from 'main'

This commit is contained in:
Petar Popovic 2024-09-11 02:06:53 +02:00 committed by Ryan C. Gordon
parent eeb465e2fc
commit 6fca867ffe
1 changed files with 3 additions and 3 deletions

View File

@ -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);