mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
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:
parent
516d324187
commit
fa502734ce
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue