- if(!(vox->height = calloc(xsz * ysz, 1))) {
- panic(get_pc(), "vox_create: failed to allocate %dx%d heightmap\n", xsz, ysz);
- }
- if(!(vox->color = calloc(xsz * ysz, 1))) {
- panic(get_pc(), "vox_create: failed to allocate %dx%d color map\n", xsz, ysz);
- }