Skip to content

Commit

Permalink
DMC doesn't accept struct initializer syntax
Browse files Browse the repository at this point in the history
It expects constants. The long way compiles (but I haven't actually called this function yet)
  • Loading branch information
triplefox committed Sep 12, 2015
1 parent 7ac0f9c commit b0d162d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stb_voxel_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b0d162d

Please sign in to comment.