diff options
Diffstat (limited to '3de.c')
-rw-r--r-- | 3de.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,7 @@ int entrypoint(int argc, const char** argv, Arena* a) { app = new_app(&h, 640, 480, "3D Engine"); if (!app) return app->err; init_fps(&f, 20); - depth = heap_alloc(&h, 3000 * 3000 * sizeof *depth); + depth = heap_alloc(&h, max_vp_w * max_vp_h * sizeof *depth); if (!depth) { print_err("Out of memory.\n"); return error_out_of_memory; |