projects
/
gph-cmath
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added test, comparing operation results using gph-math as reference
[gph-cmath]
/
src
/
cgmmat.inl
diff --git
a/src/cgmmat.inl
b/src/cgmmat.inl
index
4ae803a
..
c1b44fa
100644
(file)
--- a/
src/cgmmat.inl
+++ b/
src/cgmmat.inl
@@
-442,7
+442,7
@@
static inline void cgm_mlookat(float *m, const cgm_vec3 *pos, const cgm_vec3 *ta
const cgm_vec3 *up)
{
float rot[16], trans[16];
- cgm_vec3 dir = targ, right, vup;
+ cgm_vec3 dir = *targ, right, vup;
cgm_vsub(&dir, pos);
cgm_vnormalize(&dir);