소스 검색

fix incorrect tex_overlay2 handling

Sean Barrett 10 년 전
부모
커밋
4ea7744980
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      stb_voxel_render.h

+ 1 - 1
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;
          }