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.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-02-28 15:06:18 +01:00
parent 516d324187
commit fa502734ce

View file

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