filters/autoframing: Always set projection matrix

Fixes #739
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-12-12 14:59:12 +01:00
parent 7dd9f7bfef
commit b5cb3440f2
1 changed files with 3 additions and 0 deletions

View File

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