Removed variable during SDL initialization
This commit is contained in:
parent
31719df8a4
commit
885b15a71f
1 changed files with 10 additions and 9 deletions
|
@ -1015,17 +1015,18 @@ void check_error_sdl(const bool check, const char* message)
|
|||
|
||||
static int real_main2(int argc, TCHAR** argv)
|
||||
{
|
||||
if (
|
||||
#ifdef USE_DISPMANX
|
||||
int ret = SDL_Init(SDL_INIT_TIMER
|
||||
SDL_Init(SDL_INIT_TIMER
|
||||
| SDL_INIT_AUDIO
|
||||
| SDL_INIT_JOYSTICK
|
||||
| SDL_INIT_HAPTIC
|
||||
| SDL_INIT_GAMECONTROLLER
|
||||
| SDL_INIT_EVENTS) != 0;
|
||||
| SDL_INIT_EVENTS) != 0
|
||||
#else
|
||||
const int ret = SDL_Init(SDL_INIT_EVERYTHING) != 0;
|
||||
SDL_Init(SDL_INIT_EVERYTHING) != 0
|
||||
#endif
|
||||
if (ret < 0)
|
||||
)
|
||||
{
|
||||
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());
|
||||
abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue