Browse Source

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

Petar Popovic 7 months ago
parent
commit
6fca867ffe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      test/testoffscreen.c

+ 3 - 3
test/testoffscreen.c

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