RARCH_DISPLAY_CT_LOCK_NEW - make sure lock is freed beforehand

This commit is contained in:
Twinaphex 2016-05-06 18:55:42 +02:00
parent 6708be93e4
commit a85bc7bab6

View File

@ -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();