浏览代码

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
jp9000 9 年之前
父节点
当前提交
1ca1502518
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libobs/obs-source-transition.c

+ 1 - 0
libobs/obs-source-transition.c

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