From fa502734ce81b65009a84e80483ebfa5de64f4a0 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 28 Feb 2019 15:06:18 +0100 Subject: [PATCH] filter-blur: Allow direct rendering Small performance optimization as this removes the extra texture render that would be done by libobs which we don't actually need as we already have a texture to render to for it. --- source/filters/filter-blur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/filters/filter-blur.cpp b/source/filters/filter-blur.cpp index a876f9c..2bbaa07 100644 --- a/source/filters/filter-blur.cpp +++ b/source/filters/filter-blur.cpp @@ -847,7 +847,7 @@ void filter::blur::blur_instance::video_render(gs_effect_t* effect) gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &black, 0, 0); // Render - if (obs_source_process_filter_begin(this->m_self, GS_RGBA, OBS_NO_DIRECT_RENDERING)) { + if (obs_source_process_filter_begin(this->m_self, GS_RGBA, OBS_ALLOW_DIRECT_RENDERING)) { obs_source_process_filter_end(this->m_self, defaultEffect, baseW, baseH); } else { throw std::runtime_error("Failed to render source");