mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-30 23:28:31 +00:00
Examples: made examples's main.cpp consistent with returning 1 on error.
This commit is contained in:
@@ -51,7 +51,7 @@ int main(int, char**)
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0)
|
||||
{
|
||||
printf("Error: %s\n", SDL_GetError());
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Inform SDL that we will be using metal for rendering. Without this hint initialization of metal renderer may fail.
|
||||
|
Reference in New Issue
Block a user