summaryrefslogtreecommitdiff
path: root/src/glu/mini
diff options
context:
space:
mode:
authorJonathan Bestien-Filiatrault <joe@x2a.org>2007-09-12 16:21:13 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-12 16:21:13 -0600
commit5fdeb52e5d21bfb7feff2253c7d9e18e6b3cb252 (patch)
tree8920b539c3638a4ce56cde3c82e645cd76dd0061 /src/glu/mini
parentae0dd620fec580b77b0901ed1376e6a6b2569c7e (diff)
check return value of invert_matrix()
Diffstat (limited to 'src/glu/mini')
-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 a2747de55f..71279947cf 100644
--- a/src/glu/mini/project.c
+++ b/src/glu/mini/project.c
@@ -347,7 +347,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);
@@ -387,7 +388,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);