Cut down on runloop_ctl calls inside gfx/drivers

This commit is contained in:
twinaphex 2017-01-22 12:38:20 +01:00
parent b22cfcf060
commit 57f8c637bf
2 changed files with 4 additions and 4 deletions

View File

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

View File

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