1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

glm: fix calloc

This commit is contained in:
Alexander Medvednikov 2020-03-04 17:22:20 +01:00
parent f27f832ede
commit c203a744fe

View File

@ -131,7 +131,7 @@ fn rotate(m Mat4, angle f32, vec Vec3) Mat4 {
*/ */
fn f32_calloc(n int) &f32 { fn f32_calloc(n int) &f32 {
return &f32(calloc(n * sizeof(f32))) return &f32(vcalloc(n * sizeof(f32)))
} }
// fn translate(vec Vec3) *f32 { // fn translate(vec Vec3) *f32 {
pub fn translate(m Mat4, v Vec3) Mat4 { pub fn translate(m Mat4, v Vec3) Mat4 {