Examples: made examples's main.cpp consistent with returning 1 on error.

This commit is contained in:
ocornut
2025-09-24 17:48:48 +02:00
parent 940627d008
commit cee40f8af9
13 changed files with 34 additions and 33 deletions

View File

@@ -349,7 +349,7 @@ int main(int, char**)
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMEPAD))
{
printf("Error: SDL_Init(): %s\n", SDL_GetError());
return -1;
return 1;
}
// Create window with Vulkan graphics context
@@ -359,7 +359,7 @@ int main(int, char**)
if (window == nullptr)
{
printf("Error: SDL_CreateWindow(): %s\n", SDL_GetError());
return -1;
return 1;
}
ImVector<const char*> extensions;