From b0d162d8294d222ff64dd7bcaf49c5a6f548d953 Mon Sep 17 00:00:00 2001 From: James Hofmann Date: Sat, 12 Sep 2015 05:45:39 -0700 Subject: [PATCH] DMC doesn't accept struct initializer syntax It expects constants. The long way compiles (but I haven't actually called this function yet) --- stb_voxel_render.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_voxel_render.h b/stb_voxel_render.h index b8ab3ba..75f32f7 100644 --- a/stb_voxel_render.h +++ b/stb_voxel_render.h @@ -3382,7 +3382,7 @@ static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_po static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int z0) { - stbvox_pos pos = { x,y,0 }; + stbvox_pos pos; pos.x = x; pos.y = y; pos.z = 0; int v_off = x * mm->x_stride_in_bytes + y * mm->y_stride_in_bytes; int ns_off = mm->y_stride_in_bytes; int ew_off = mm->x_stride_in_bytes;