Skip to content
Snippets Groups Projects
Commit eab705ef authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Quit video subsystem from video thread.

Some SDL targets (like Haiku) have issues doing video calls from
threads other than the video thread.
parent ab2ff158
Branches
Tags
No related merge requests found
Pipeline #6816 passed
...@@ -1036,8 +1036,10 @@ void sdl_video_event_thread(void *data) ...@@ -1036,8 +1036,10 @@ void sdl_video_event_thread(void *data)
else { else {
if (sdl_init_good) if (sdl_init_good)
sdl_add_key(CIO_KEY_QUIT, &cvstat); sdl_add_key(CIO_KEY_QUIT, &cvstat);
else else {
sdl.QuitSubSystem(SDL_INIT_VIDEO);
return; return;
}
} }
break; break;
case SDL_WINDOWEVENT: case SDL_WINDOWEVENT:
...@@ -1076,6 +1078,7 @@ void sdl_video_event_thread(void *data) ...@@ -1076,6 +1078,7 @@ void sdl_video_event_thread(void *data)
sdl_ufunc_retval=0; sdl_ufunc_retval=0;
if (ciolib_reaper) if (ciolib_reaper)
exit(0); exit(0);
sdl.QuitSubSystem(SDL_INIT_VIDEO);
sem_post(&sdl_ufunc_ret); sem_post(&sdl_ufunc_ret);
return; return;
case SDL_USEREVENT_FLUSH: case SDL_USEREVENT_FLUSH:
...@@ -1285,6 +1288,7 @@ void sdl_video_event_thread(void *data) ...@@ -1285,6 +1288,7 @@ void sdl_video_event_thread(void *data)
break; break;
} }
} }
sdl.QuitSubSystem(SDL_INIT_VIDEO);
return; return;
} }
......
Version 1.2rc3 Version 1.2rc3
-------------- --------------
Get Haiku support building again Get Haiku support building again
Properly quit video subsystem from video thread - fixes Haiku crash
Version 1.2rc2 Version 1.2rc2
-------------- --------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment