Skip to content

Commit

Permalink
Fix incorrect SDL init
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranick committed Feb 14, 2019
1 parent dfe3d27 commit 290c291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/backend/sdl/SDLApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ namespace lime {

SDLApplication::SDLApplication () {

Uint32 initFlags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER | SDL_INIT_JOYSTICK;
Uint32 initFlags = SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER | SDL_INIT_TIMER | SDL_INIT_JOYSTICK;
#if defined(LIME_MOJOAL) || defined(LIME_OPENALSOFT)
initFlags &= SDL_INIT_AUDIO;
initFlags |= SDL_INIT_AUDIO;
#endif

if (SDL_Init (initFlags) != 0) {
Expand Down

0 comments on commit 290c291

Please sign in to comment.