Fix part of #26850: OS X game player was showing _NSAutoreleaseNoPool()

error messages on start. These were coming from initializing the SDL video
subsystem as part of Joystick init. We do not need this, as video stuff is
covered by GHOST, most likely this was conflicting.
This commit is contained in:
Brecht Van Lommel 2011-06-27 14:06:11 +00:00
parent 24c0f1873e
commit 49f84ef9ed

@ -89,7 +89,7 @@ SCA_Joystick *SCA_Joystick::GetInstance( short int joyindex )
{
int i;
// do this once only
if(SDL_InitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO ) == -1 ){
if(SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1 ){
echo("Error-Initializing-SDL: " << SDL_GetError());
return NULL;
}
@ -124,7 +124,7 @@ void SCA_Joystick::ReleaseInstance()
m_instance[i]= NULL;
}
SDL_QuitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO );
SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
#endif
}
}