aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLearn OpenGL ES <admin@learnopengles.com>2013-11-07 21:12:12 -0500
committerLearn OpenGL ES <admin@learnopengles.com>2013-11-07 21:12:24 -0500
commit7ae993be3054935476dc1d997a61b4684d72d6b0 (patch)
treed65540c338dc2ed0ee812cd60361c58db8a1fe3e
parent9cf2c119735361daa38728c618e5f7f174e73aa0 (diff)
downloadlinmath.h-7ae993be3054935476dc1d997a61b4684d72d6b0.tar.gz
linmath.h-7ae993be3054935476dc1d997a61b4684d72d6b0.tar.bz2
Fix bug with mat4x4_translate_in_place introduced in 34cd9df850faf0bf6b9182b3500406351ad68ae0
-rw-r--r--linmath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linmath.h b/linmath.h
index e5431d6..1dc2368 100644
--- a/linmath.h
+++ b/linmath.h
@@ -192,7 +192,7 @@ static inline void mat4x4_translate(mat4x4 T, float x, float y, float z)
}
static inline void mat4x4_translate_in_place(mat4x4 M, float x, float y, float z)
{
- vec4 t = {x, y, z, 1};
+ vec4 t = {x, y, z, 0};
vec4 r;
int i;
for (i = 0; i < 4; ++i) {