From e32d840c50fe1e88d49c4f09f7c63e075e4b7109 Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 17 Mar 2009 23:44:47 +0000 Subject: [PATCH] Work on new OpenGL example - Fixed bug with missing polygons. --- examples/OpenGL/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/OpenGL/main.cpp b/examples/OpenGL/main.cpp index 2b2c12f7..d13c41e4 100644 --- a/examples/OpenGL/main.cpp +++ b/examples/OpenGL/main.cpp @@ -459,9 +459,9 @@ void main ( int argc, char** argv ) // Create Main Function For Bringing It Al uint16 regionStartY = uRegionY * g_uRegionSideLength; uint16 regionStartZ = uRegionZ * g_uRegionSideLength; - uint16 regionEndX = regionStartX + g_uRegionSideLength; - uint16 regionEndY = regionStartY + g_uRegionSideLength; - uint16 regionEndZ = regionStartZ + g_uRegionSideLength; + uint16 regionEndX = regionStartX + g_uRegionSideLength + 1; //Why do we need the '+1' here? + uint16 regionEndY = regionStartY + g_uRegionSideLength + 1; //Why do we need the '+1' here? + uint16 regionEndZ = regionStartZ + g_uRegionSideLength + 1; //Why do we need the '+1' here? Vector3DInt32 regLowerCorner(regionStartX, regionStartY, regionStartZ); Vector3DInt32 regUpperCorner(regionEndX, regionEndY, regionEndZ);