Fix testoffscreen.c: bool literal returned from 'main'
This commit is contained in:
committed by
Ryan C. Gordon
parent
eeb465e2fc
commit
6fca867ffe
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!SDL_InitSubSystem(SDL_INIT_VIDEO)) {
|
if (!SDL_InitSubSystem(SDL_INIT_VIDEO)) {
|
||||||
SDL_Log("Couldn't initialize the offscreen video driver: %s\n",
|
SDL_Log("Couldn't initialize the offscreen video driver: %s\n",
|
||||||
SDL_GetError());
|
SDL_GetError());
|
||||||
return SDL_FALSE;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If OPENGL fails to init it will fallback to using a framebuffer for rendering */
|
/* 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) {
|
if (!window) {
|
||||||
SDL_Log("Couldn't create window: %s\n", SDL_GetError());
|
SDL_Log("Couldn't create window: %s\n", SDL_GetError());
|
||||||
return SDL_FALSE;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer = SDL_CreateRenderer(window, NULL);
|
renderer = SDL_CreateRenderer(window, NULL);
|
||||||
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!renderer) {
|
if (!renderer) {
|
||||||
SDL_Log("Couldn't create renderer: %s\n",
|
SDL_Log("Couldn't create renderer: %s\n",
|
||||||
SDL_GetError());
|
SDL_GetError());
|
||||||
return SDL_FALSE;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
|
|||||||
Reference in New Issue
Block a user