From 22e94bb0d8310e38e38a81ad944c9306f4fc64ff Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 21 Jun 2020 18:42:23 +0200 Subject: [PATCH] filters/shader: Don't use scaled size for input capture --- source/filters/filter-shader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/filters/filter-shader.cpp b/source/filters/filter-shader.cpp index 1a0296b3..9ea331e5 100644 --- a/source/filters/filter-shader.cpp +++ b/source/filters/filter-shader.cpp @@ -95,9 +95,9 @@ void shader_instance::video_render(gs_effect_t* effect) gs::debug_marker gdm{gs::debug_color_source, "Cache"}; #endif - auto op = _rt->render(_fx->width(), _fx->height()); + auto op = _rt->render(_fx->base_width(), _fx->base_height()); - gs_ortho(0, static_cast(_fx->width()), 0, static_cast(_fx->height()), -1, 1); + gs_ortho(0, 1, 0, 1, -1, 1); vec4 clear_color = {0, 0, 0, 0}; gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &clear_color, 0, 0); @@ -114,7 +114,7 @@ void shader_instance::video_render(gs_effect_t* effect) gs_enable_color(true, true, true, true); gs_set_cull_mode(GS_NEITHER); - obs_source_process_filter_end(_self, obs_get_base_effect(OBS_EFFECT_DEFAULT), _fx->width(), _fx->height()); + obs_source_process_filter_end(_self, obs_get_base_effect(OBS_EFFECT_DEFAULT), 1, 1); gs_blend_state_pop(); } else {