From 6fbad6856125f0af8bdc8076a8c2fc0fe1d86eb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 Feb 2016 01:29:49 +0100 Subject: [PATCH] (gl.c) Cleanup --- gfx/drivers/gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 8f9760fad9..7755d7611f 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1808,7 +1808,7 @@ static bool gl_frame(void *data, const void *frame, video_shader_ctx_mvp_t mvp; video_shader_ctx_coords_t coords; video_shader_ctx_params_t params; - bool is_slowmotion, is_paused; + bool is_slowmotion; unsigned width, height; struct gfx_tex_info feedback_info; video_shader_ctx_info_t shader_info; @@ -2048,14 +2048,14 @@ static bool gl_frame(void *data, const void *frame, #endif #endif runloop_ctl(RUNLOOP_CTL_IS_SLOWMOTION, &is_slowmotion); - is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL); /* Disable BFI during fast forward, slow-motion, * and pause to prevent flicker. */ if ( settings->video.black_frame_insertion && !input_driver_ctl(RARCH_INPUT_CTL_IS_NONBLOCK_STATE, NULL) - && !is_slowmotion && !is_paused) + && !is_slowmotion + && !runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL)) { gfx_ctx_ctl(GFX_CTL_SWAP_BUFFERS, NULL); glClear(GL_COLOR_BUFFER_BIT);