From 3cb36bbd5154163a442915f703002d4b0ce16f84 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 1 May 2016 16:56:21 -0700 Subject: [PATCH] libobs: Fix deinterlacing discarding flipped status When rendering the deinterlaced surface, it would not take in to account whether the async surfaces were marked as flipped or not. --- libobs/obs-source-deinterlace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-source-deinterlace.c b/libobs/obs-source-deinterlace.c index 35272fa34..319a1be62 100644 --- a/libobs/obs-source-deinterlace.c +++ b/libobs/obs-source-deinterlace.c @@ -357,7 +357,8 @@ void deinterlace_render(obs_source_t *s) gs_effect_set_bool(frame2, obs->video.video_time >= frame2_ts); while (gs_effect_loop(effect, tech)) - gs_draw_sprite(NULL, 0, s->async_width, s->async_height); + gs_draw_sprite(NULL, s->async_flip ? GS_FLIP_V : 0, + s->async_width, s->async_height); } static void enable_deinterlacing(obs_source_t *source,