(gl.c) Cleanup

This commit is contained in:
twinaphex 2016-02-29 01:29:49 +01:00
parent 7d346d627f
commit 6fbad68561

View File

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