summaryrefslogtreecommitdiffstats
path: root/src/glu/mini/project.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glu/mini/project.c')
-rw-r--r--src/glu/mini/project.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glu/mini/project.c b/src/glu/mini/project.c
index 6fa03267e53..2e79cdf0840 100644
--- a/src/glu/mini/project.c
+++ b/src/glu/mini/project.c
@@ -346,7 +346,8 @@ gluUnProject(GLdouble winx, GLdouble winy, GLdouble winz,
/* calcul transformation inverse */
matmul(A, proj, model);
- invert_matrix(A, m);
+ if (!invert_matrix(A, m))
+ return GL_FALSE;
/* d'ou les coordonnees objets */
transform_point(out, m, in);
@@ -386,7 +387,8 @@ gluUnProject4(GLdouble winx, GLdouble winy, GLdouble winz, GLdouble clipw,
/* calcul transformation inverse */
matmul(A, projMatrix, modelMatrix);
- invert_matrix(A, m);
+ if (!invert_matrix(A, m))
+ return GL_FALSE;
/* d'ou les coordonnees objets */
transform_point(out, m, in);