summaryrefslogtreecommitdiff
path: root/src/glm_mat3_bindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm_mat3_bindings.c')
-rw-r--r--src/glm_mat3_bindings.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glm_mat3_bindings.c b/src/glm_mat3_bindings.c
index 0222e47..a789cce 100644
--- a/src/glm_mat3_bindings.c
+++ b/src/glm_mat3_bindings.c
@@ -71,7 +71,8 @@ int honey_glm_mat3_mul(lua_State* L)
MAT3, dest->type);
}
else {
- honey_glm_new_mat3(L);
+ lua_pushcfunction(L, honey_glm_new_mat3);
+ honey_lua_pcall(L, 0, 1);
dest = lua_touserdata(L, -1);
}
@@ -122,7 +123,8 @@ int honey_glm_mat3_mulv(lua_State* L)
VEC3, v->type);
if (choice == 0) {
- honey_glm_new_vec3(L);
+ lua_pushcfunction(L, honey_glm_new_vec3);
+ honey_lua_pcall(L, 0, 1);
dest = lua_touserdata(L, -1);
}
else {
@@ -177,7 +179,8 @@ int honey_glm_mat3_inv(lua_State* L)
2, HONEY_USERDATA, &self, HONEY_USERDATA, &dest);
if (choice == 0) {
- honey_glm_new_mat3(L);
+ lua_pushcfunction(L, honey_glm_new_mat3);
+ honey_lua_pcall(L, 0, 1);
dest = lua_touserdata(L, -1);
}
else {