From b5cb3440f20412cb6908f42ba683df6981469fce Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 12 Dec 2021 14:59:12 +0100 Subject: [PATCH] filters/autoframing: Always set projection matrix Fixes #739 --- source/filters/filter-autoframing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/filters/filter-autoframing.cpp b/source/filters/filter-autoframing.cpp index c13a05e..c86e1d1 100644 --- a/source/filters/filter-autoframing.cpp +++ b/source/filters/filter-autoframing.cpp @@ -478,6 +478,9 @@ void autoframing_instance::video_render(gs_effect_t* effect) if (obs_source_process_filter_begin(_self, GS_RGBA, OBS_ALLOW_DIRECT_RENDERING)) { auto op = _input->render(width, height); + // Set correct projection matrix. + gs_ortho(0, width, 0, height, 0, 1); + // Clear the buffer gs_clear(GS_CLEAR_COLOR | GS_CLEAR_DEPTH, &blank, 0, 0);