Fix blit thread related deadlocks

Removed unnecessary calls to video_wait_for_blit(), which in
addition to not doing much were also in a race with the
video_blit_memtoscreen() thread to wait for and reset the
blit_data.blit_complete event signalled by blit_thread(),
causing several deadlocks.
This commit is contained in:
luisjoseromero
2020-12-22 00:19:45 +00:00
parent 9e80f60db7
commit 4b42251b84
2 changed files with 0 additions and 7 deletions

View File

@@ -166,7 +166,6 @@ static void
video_toggle_option(HMENU h, int *val, int id)
{
startblit();
video_wait_for_blit();
*val ^= 1;
CheckMenuItem(h, id, *val ? MF_CHECKED : MF_UNCHECKED);
endblit();
@@ -1467,8 +1466,6 @@ plat_resize(int x, int y)
/* First, see if we should resize the UI window. */
if (!vid_resize) {
video_wait_for_blit();
/* scale the screen base on DPI */
if (dpi_scale) {