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:
parent
f27f832ede
commit
c203a744fe
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user