Skip to content

Commit 5d9e0f6

Browse files
committed
Remove obsolete comment about SDL_Init
Now it returns a boolean.
1 parent b7589ab commit 5d9e0f6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/engine/sys/sdl_glimp.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,16 +1752,6 @@ static rserr_t GLimp_StartDriverAndSetMode( int mode, bool fullscreen, bool bord
17521752
SDL_VERSIONNUM_MINOR(compiled),
17531753
SDL_VERSIONNUM_MICRO(compiled));
17541754

1755-
/* It is recommended to test for negative value and not just -1.
1756-
1757-
> Returns 0 on success or a negative error code on failure;
1758-
> call SDL_GetError() for more information.
1759-
> -- https://wiki.libsdl.org/SDL_Init
1760-
1761-
the SDL_GetError page also gives a sample of code testing for < 0
1762-
> if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
1763-
> -- https://wiki.libsdl.org/SDL_GetError */
1764-
17651755
if ( !SDL_Init( SDL_INIT_VIDEO ) )
17661756
{
17671757
Sys::Error("SDL_Init( SDL_INIT_VIDEO ) failed: %s", SDL_GetError() );

0 commit comments

Comments
 (0)