summaryrefslogtreecommitdiff
path: root/src/example/02_cube.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-12-15 16:01:48 +0800
committerchai <chaifix@163.com>2019-12-15 16:01:48 +0800
commitbcb7c0a426e66dc57007ae9a0e879358c7860fbb (patch)
tree7ae13fbfbe7c54a3274adba193b1c6edc7fb9c65 /src/example/02_cube.c
parenta0b8ef3d482c965901f094879a79dd9c5fd8245c (diff)
*misc
Diffstat (limited to 'src/example/02_cube.c')
-rw-r--r--src/example/02_cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/02_cube.c b/src/example/02_cube.c
index caedd64..c1f2796 100644
--- a/src/example/02_cube.c
+++ b/src/example/02_cube.c
@@ -53,7 +53,7 @@ void ondrawcube(void*data) {
for (int i = 0; i < 8; ++i) {
Vec4 v = { verts[i].x, verts[i].y ,verts[i].z ,1 }, temp;
- mat4_applytovec4(&m, &v, &temp);
+ mat4_mulvec4(&m, &v, &temp);
temp.x /= temp.w;
temp.y /= temp.w;
temp.z /= temp.w;