Skip to content

Commit

Permalink
Fixes composite background option scaling incorrectly.
Browse files Browse the repository at this point in the history
Fixes a bug where the composite background option would scale the filtered source incorrectly if the background source was a different size.
  • Loading branch information
FiniteSingularity committed Sep 1, 2023
1 parent 4c833c8 commit 3ebbe19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/obs-composite-blur-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,7 @@ gs_texture_t *blend_composite(gs_texture_t *texture,
set_blending_parameters();
if (gs_texrender_begin(data->composite_render, data->width,
data->height)) {
gs_ortho(0.0f, (float)data->width, 0.0f, (float)data->height, -100.0f, 100.0f);
while (gs_effect_loop(composite_effect, "Draw"))
gs_draw_sprite(texture, 0, data->width,
data->height);
Expand All @@ -1825,4 +1826,4 @@ gs_texture_t *blend_composite(gs_texture_t *texture,
gs_blend_state_pop();
}
return texture;
}
}

0 comments on commit 3ebbe19

Please sign in to comment.