mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Cut down on runloop_ctl calls inside gfx/drivers
This commit is contained in:
parent
b22cfcf060
commit
57f8c637bf
2 changed files with 4 additions and 4 deletions
|
@ -1340,8 +1340,8 @@ static bool gl_frame(void *data, const void *frame,
|
|||
if (
|
||||
video_info->black_frame_insertion
|
||||
&& !input_driver_is_nonblock_state()
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_SLOWMOTION, NULL)
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
||||
&& !video_info->runloop_is_slowmotion
|
||||
&& !video_info->runloop_is_paused)
|
||||
{
|
||||
video_context_driver_swap_buffers(video_info);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
|
|
@ -1933,8 +1933,8 @@ static bool vulkan_frame(void *data, const void *frame,
|
|||
if (
|
||||
video_info->black_frame_insertion
|
||||
&& !input_driver_is_nonblock_state()
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_SLOWMOTION, NULL)
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL))
|
||||
&& !video_info->runloop_is_slowmotion
|
||||
&& !video_info->runloop_is_paused)
|
||||
{
|
||||
vulkan_inject_black_frame(vk, video_info);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue