From b4eadc29954183fe5bfd7bd526c9ee69a8388ccb Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 25 Jan 2018 05:11:15 +0100 Subject: [PATCH] filter-blur: Don't override blend mode of original source This causes a black square to appear, since the blend mode should ideally match what the original source thought it would be. --- source/filter-blur.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/filter-blur.cpp b/source/filter-blur.cpp index b8d949a8..e0a6e291 100644 --- a/source/filter-blur.cpp +++ b/source/filter-blur.cpp @@ -386,16 +386,6 @@ void Filter::Blur::Instance::video_render(gs_effect_t *effect) { // Clear to Black gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &black, 0, 0); - // Set up camera stuff - gs_set_cull_mode(GS_NEITHER); - gs_reset_blend_state(); - gs_enable_blending(false); - gs_blend_function(GS_BLEND_ONE, GS_BLEND_ZERO); - gs_enable_depth_test(false); - gs_enable_stencil_test(false); - gs_enable_stencil_write(false); - gs_enable_color(true, true, true, true); - // Render if (obs_source_process_filter_begin(m_source, GS_RGBA, OBS_NO_DIRECT_RENDERING)) { obs_source_process_filter_end(m_source, effect ? effect : defaultEffect, baseW, baseH);