glm: fix calloc

pull/3937/head
Alexander Medvednikov 2020-03-04 17:22:20 +01:00
parent f27f832ede
commit c203a744fe
1 changed files with 1 additions and 1 deletions

View File

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