浏览代码

audio: Remove an assertion that no longer makes sense.

One may happen to call SDL_AudioThreadFinalize when thread_alive is not set.
Ryan C. Gordon 2 年之前
父节点
当前提交
3f4f004794
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/audio/SDL_audio.c

+ 0 - 1
src/audio/SDL_audio.c

@@ -663,7 +663,6 @@ void SDL_QuitAudio(void)
 
 void SDL_AudioThreadFinalize(SDL_AudioDevice *device)
 {
-    SDL_assert(SDL_AtomicGet(&device->thread_alive));
     if (SDL_AtomicGet(&device->condemned)) {
         if (device->thread) {
             SDL_DetachThread(device->thread);  // no one is waiting for us, just detach ourselves.