mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 14:53:39 +00:00
Don't use video_driver_get_frame_count in crucial runloop function
This commit is contained in:
parent
30a39d6d88
commit
d98902c21e
@ -612,7 +612,8 @@ static INLINE int time_to_exit(driver_t *driver, global_t *global,
|
||||
bool shutdown_pressed = system && system->shutdown;
|
||||
bool video_alive = video && video->alive(driver->video_data);
|
||||
bool movie_end = (global->bsv.movie_end && global->bsv.eof_exit);
|
||||
uint64_t frame_count = video_driver_get_frame_count();
|
||||
uint64_t frame_count = (driver && driver->video_poke && driver->video_poke->get_frame_count) ?
|
||||
driver->video_poke->get_frame_count(driver->video_data) : 0;
|
||||
bool frame_count_end = global->max_frames && (frame_count >= global->max_frames);
|
||||
|
||||
if (shutdown_pressed || cmd->quit_key_pressed || frame_count_end || movie_end
|
||||
|
Loading…
Reference in New Issue
Block a user