Skip to content

Commit

Permalink
libobs: Set projection matrix for transition renders
Browse files Browse the repository at this point in the history
This fixes a bug where the sub-sources on a transition wouldn't render
with the expected size when the transition had a different size from its
sub-sources
  • Loading branch information
jp9000 committed May 24, 2016
1 parent 97b72d5 commit 1ca1502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libobs/obs-source-transition.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ static inline void render_child(obs_source_t *transition,
if (gs_texrender_begin(transition->transition_texrender[idx], cx, cy)) {
vec4_zero(&blank);
gs_clear(GS_CLEAR_COLOR, &blank, 0.0f, 0);
gs_ortho(0.0f, (float)cx, 0.0f, (float)cy, -100.0f, 100.0f);

gs_matrix_push();
gs_matrix_mul(&transition->transition_matrices[idx]);
Expand Down

0 comments on commit 1ca1502

Please sign in to comment.