소스 검색

Fix bug with matrix rotation function

jp9000 11 년 전
부모
커밋
bfeb16e884
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libobs/graphics/graphics.c

+ 1 - 1
libobs/graphics/graphics.c

@@ -305,7 +305,7 @@ void gs_matrix_rotaa4f(float x, float y, float z, float angle)
 	struct matrix3 *top_mat = top_matrix(thread_graphics);
 	struct matrix3 *top_mat = top_matrix(thread_graphics);
 	struct axisang aa;
 	struct axisang aa;
 
 
-	if (!top_mat) {
+	if (top_mat) {
 		axisang_set(&aa, x, y, z, angle);
 		axisang_set(&aa, x, y, z, angle);
 		matrix3_rotate_aa(top_mat, top_mat, &aa);
 		matrix3_rotate_aa(top_mat, top_mat, &aa);
 	}
 	}