From bcb7c0a426e66dc57007ae9a0e879358c7860fbb Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 15 Dec 2019 16:01:48 +0800 Subject: *misc --- src/example/02_cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/example/02_cube.c') 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; -- cgit v1.1-26-g67d0