Prechádzať zdrojové kódy

Fix bug with matrix rotation function

jp9000 11 rokov pred
rodič
commit
bfeb16e884
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 axisang aa;
 
-	if (!top_mat) {
+	if (top_mat) {
 		axisang_set(&aa, x, y, z, angle);
 		matrix3_rotate_aa(top_mat, top_mat, &aa);
 	}