diff --git a/library/PolyVoxCore/include/PolyVoxImpl/MarchingCubesTables.h b/library/PolyVoxCore/include/PolyVoxImpl/MarchingCubesTables.h index 59745a82..da199fcd 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/MarchingCubesTables.h +++ b/library/PolyVoxCore/include/PolyVoxImpl/MarchingCubesTables.h @@ -28,8 +28,8 @@ freely, subject to the following restrictions: namespace PolyVox { - extern POLYVOX_API int edgeTable[256]; - extern POLYVOX_API int triTable[256][16]; + extern const POLYVOX_API int edgeTable[256]; + extern const POLYVOX_API int triTable[256][16]; } #endif diff --git a/library/PolyVoxCore/source/PolyVoxImpl/MarchingCubesTables.cpp b/library/PolyVoxCore/source/PolyVoxImpl/MarchingCubesTables.cpp index b9175671..c0e069f6 100644 --- a/library/PolyVoxCore/source/PolyVoxImpl/MarchingCubesTables.cpp +++ b/library/PolyVoxCore/source/PolyVoxImpl/MarchingCubesTables.cpp @@ -30,8 +30,8 @@ freely, subject to the following restrictions: namespace PolyVox { - int edgeTable[256]= - { + const int edgeTable[256]= + { 0x000, 0x109, 0x203, 0x30a, 0x80c, 0x905, 0xa0f, 0xb06, 0x406, 0x50f, 0x605, 0x70c, 0xc0a, 0xd03, 0xe09, 0xf00, 0x190, 0x099, 0x393, 0x29a, 0x99c, 0x895, 0xb9f, 0xa96, @@ -66,7 +66,7 @@ namespace PolyVox 0xb06, 0xa0f, 0x905, 0x80c, 0x30a, 0x203, 0x109, 0x000 }; - int triTable[256][16] = + const int triTable[256][16] = { {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, }, { 0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, },