Browse Source

remove second alcCreateContext in iOS build,
fixes issue #120 alxPlay() Does not work in iOS 7

Paul Jan 11 years ago
parent
commit
0bd0d13555
1 changed files with 1 additions and 0 deletions
  1. 1 0
      engine/source/audio/audio.cc

+ 1 - 0
engine/source/audio/audio.cc

@@ -2496,6 +2496,7 @@ bool OpenALInit()
    mContext = alcCreateContext((ALCdevice*)mDevice, NULL);
    mContext = alcCreateContext((ALCdevice*)mDevice, NULL);
 #elif defined(TORQUE_OS_EMSCRIPTEN)
 #elif defined(TORQUE_OS_EMSCRIPTEN)
    mContext = alcCreateContext((ALCdevice*)mDevice, NULL);;
    mContext = alcCreateContext((ALCdevice*)mDevice, NULL);;
+#elif defined(TORQUE_OS_IOS)
 #else
 #else
    mContext = alcCreateContext(mDevice,NULL);
    mContext = alcCreateContext(mDevice,NULL);
 #endif
 #endif