From 4ea7744980e3a181ff3a8bd6a9ee7f12bd55de05 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 1 Aug 2015 04:15:55 -0700 Subject: [PATCH] fix incorrect tex_overlay2 handling --- 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 4ce2d08..1482113 100644 --- a/stb_voxel_render.h +++ b/stb_voxel_render.h @@ -2084,7 +2084,7 @@ stbvox_mesh_face stbvox_compute_mesh_face_value(stbvox_mesh_maker *mm, stbvox_ro face_data.tex1 = rep1; } if (mm->input.overlay_tex2) { - unsigned char rep2 = mm->input.overlay_tex1[over][over_face]; + unsigned char rep2 = mm->input.overlay_tex2[over][over_face]; if (rep2) face_data.tex2 = rep2; }