From 83cc852d170f602630e654f75f7c5b97ae095bc5 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 7 Jun 2009 09:46:06 +0000 Subject: [PATCH] Fix for strange crash - possibly alignment related. See comment in modified file. --- library/PolyVoxCore/include/Region.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/PolyVoxCore/include/Region.h b/library/PolyVoxCore/include/Region.h index 855cf550..e8542a2b 100644 --- a/library/PolyVoxCore/include/Region.h +++ b/library/PolyVoxCore/include/Region.h @@ -55,6 +55,12 @@ namespace PolyVox private: Vector3DInt16 m_v3dLowerCorner; Vector3DInt16 m_v3dUpperCorner; + + //FIXME - This variable is unused, but without it the OpenGL example crashes in release mode + //when the volume size is 128^3 and the level of detail is 2. Very strange, but consistant. + //Presubablly some kind of alignment issue? It started after this class was changed to use + //int16's rather than int32's. To be investigated. + uint8_t dummy; }; }