mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
RARCH_DISPLAY_CT_LOCK_NEW - make sure lock is freed beforehand
This commit is contained in:
parent
6708be93e4
commit
a85bc7bab6
@ -1300,6 +1300,7 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
||||
#endif
|
||||
break;
|
||||
case RARCH_DISPLAY_CTL_LOCK_NEW:
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_LOCK_FREE, NULL);
|
||||
#ifdef HAVE_THREADS
|
||||
if (!display_lock)
|
||||
display_lock = slock_new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user