filter/shader: Use direct rendering (#501)

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-03-28 14:29:37 +02:00
parent e7dd44e3ec
commit 4a3d1d4fa5

View file

@ -126,7 +126,7 @@ void shader_instance::video_render(gs_effect_t* effect)
_fx->prepare_render(); _fx->prepare_render();
_fx->set_input_a(_rt->get_texture()); _fx->set_input_a(_rt->get_texture());
_fx->render(); _fx->render(effect);
} }
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
obs_source_skip_video_filter(_self); obs_source_skip_video_filter(_self);
@ -148,7 +148,7 @@ shader_factory::shader_factory()
{ {
_info.id = PREFIX "filter-shader"; _info.id = PREFIX "filter-shader";
_info.type = OBS_SOURCE_TYPE_FILTER; _info.type = OBS_SOURCE_TYPE_FILTER;
_info.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW; _info.output_flags = OBS_SOURCE_VIDEO;
set_activity_tracking_enabled(true); set_activity_tracking_enabled(true);
finish_setup(); finish_setup();