X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fvoxscape.c;h=5cd9e0d77c39b5373dae99e98e219dbb5fadc254;hb=2e5cc6552f3e43f97fa049bb91498b4ae8877438;hp=a1e141e7f89ba4e8a4246ed64c5130d010dff921;hpb=53c0ee3332822465be7dcf923ca3c6445076b555;p=gbajam22 diff --git a/src/voxscape.c b/src/voxscape.c index a1e141e..5cd9e0d 100644 --- a/src/voxscape.c +++ b/src/voxscape.c @@ -60,6 +60,17 @@ int vox_init(int xsz, int ysz, uint8_t *himg, uint8_t *cimg) vox_height = himg; vox_color = cimg; + vox_fb = 0; + vox_coltop = 0; + vox_horizon = 0; + vox_x = vox_y = vox_angle = 0; + vox_fov = 0; + vox_znear = vox_zfar = 0; + vox_nslices = 0; + vox_slicelen = 0; + vox_valid = 0; + projlut = 0; + vox_vheight = 80; return 0; @@ -67,10 +78,7 @@ int vox_init(int xsz, int ysz, uint8_t *himg, uint8_t *cimg) void vox_destroy(void) { - free(vox_color); - free(vox_height); - free(vox_coltop); - free(vox_slicelen); + /* XXX we rely on the screen to clear up any allocated IWRAM */ } #define H(x, y) \