Explorar el Código

Fix bug with matrix rotation function

jp9000 hace 11 años
padre
commit
bfeb16e884
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	}