Reformat to something more readable for me :3
This commit is contained in:
+3
-3
@@ -12,7 +12,7 @@ void context_init( const char *title, int width, int height, int major, int mino
|
||||
{
|
||||
if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_JOYSTICK ) < 0 ) goto err;
|
||||
|
||||
int profile = (major < 3) ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY : SDL_GL_CONTEXT_PROFILE_CORE;
|
||||
int profile = major < 3 ? SDL_GL_CONTEXT_PROFILE_COMPATIBILITY : SDL_GL_CONTEXT_PROFILE_CORE;
|
||||
|
||||
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION, major );
|
||||
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION, minor );
|
||||
@@ -41,7 +41,7 @@ void context_init( const char *title, int width, int height, int major, int mino
|
||||
if( glewInitResult != GLEW_OK ) goto err;
|
||||
#endif
|
||||
|
||||
s_controller = NULL;
|
||||
s_controller = nullptr;
|
||||
|
||||
for( int i = 0; i < SDL_NumJoysticks(); ++i )
|
||||
{
|
||||
@@ -110,5 +110,5 @@ void context_terminate( void )
|
||||
SDL_DestroyWindow( s_sdlWindow );
|
||||
SDL_Quit();
|
||||
|
||||
s_sdlWindow = NULL;
|
||||
s_sdlWindow = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user