libobs: Set projection matrix for transition renders
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
This commit is contained in:
parent
97b72d5fad
commit
1ca1502518
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user