[mutter/gbsneto/graphene2: 44/45] cogl/matrix: Fix rotation
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene2: 44/45] cogl/matrix: Fix rotation
- Date: Sat, 7 Sep 2019 11:20:56 +0000 (UTC)
commit 142828005444e13c7edeaf751aaab6a90a9f75fd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Mar 12 14:35:33 2019 -0300
cogl/matrix: Fix rotation
cogl/cogl/cogl-matrix.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/cogl/cogl/cogl-matrix.c b/cogl/cogl/cogl-matrix.c
index 449e90b03..70393f340 100644
--- a/cogl/cogl/cogl-matrix.c
+++ b/cogl/cogl/cogl-matrix.c
@@ -156,14 +156,11 @@ cogl_matrix_rotate (CoglMatrix *matrix,
float y,
float z)
{
- graphene_matrix_t rotation, m;
+ graphene_matrix_t m;
graphene_vec3_t r;
cogl_matrix_to_graphene_matrix (matrix, &m);
-
- graphene_matrix_init_rotate (&rotation, angle, graphene_vec3_init (&r, x, y, z));
- graphene_matrix_multiply (&rotation, &m, &m);
-
+ graphene_matrix_rotate (&m, angle, graphene_vec3_init (&r, x, y, z));
graphene_matrix_to_cogl_matrix (&m, matrix);
_COGL_MATRIX_DEBUG_PRINT (matrix);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]