Matthew Waters 2018-07-10 20:12:15 +10:00
parent 969089f7a8
commit bd2920ca2d

View file

@ -161,8 +161,8 @@ void gst_gl_get_affine_transformation_meta_as_ndc_ext
} else {
float tmp[16];
gst_gl_multiply_matrix4 (to_ndc_matrix, meta->matrix, tmp);
gst_gl_multiply_matrix4 (tmp, from_ndc_matrix, matrix);
gst_gl_multiply_matrix4 (from_ndc_matrix, meta->matrix, tmp);
gst_gl_multiply_matrix4 (tmp, to_ndc_matrix, matrix);
}
}
@ -173,6 +173,6 @@ void gst_gl_set_affine_transformation_meta_from_ndc_ext
g_return_if_fail (meta != NULL);
gst_gl_multiply_matrix4 (from_ndc_matrix, matrix, tmp);
gst_gl_multiply_matrix4 (tmp, to_ndc_matrix, meta->matrix);
gst_gl_multiply_matrix4 (to_ndc_matrix, matrix, tmp);
gst_gl_multiply_matrix4 (tmp, from_ndc_matrix, meta->matrix);
}