mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Merge pull request #4418 from vanfanel/master
DISPMANX: Put guard back in to avoid potential lockups!
This commit is contained in:
commit
105fa863ec
@ -319,6 +319,13 @@ static void dispmanx_surface_update(void *data, const void *frame,
|
||||
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
/* Dispmanx doesn't support more than one pending pageflip.
|
||||
* It causes lockups. */
|
||||
slock_lock(_dispvars->pending_mutex);
|
||||
if (_dispvars->pageflip_pending > 0)
|
||||
scond_wait(_dispvars->vsync_condition, _dispvars->pending_mutex);
|
||||
slock_unlock(_dispvars->pending_mutex);
|
||||
|
||||
page = dispmanx_get_free_page(_dispvars, surface);
|
||||
|
||||
/* Frame blitting */
|
||||
|
Loading…
Reference in New Issue
Block a user