From 5a5ba08c234ae013e374f46419ac39f3c6e2b8a6 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 27 Feb 2014 21:57:27 +0000 Subject: [PATCH] Fix longstanding rent in skydome under ALS. --- simgear/scene/sky/dome.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/sky/dome.cxx b/simgear/scene/sky/dome.cxx index 01e8beeb..ae04465f 100644 --- a/simgear/scene/sky/dome.cxx +++ b/simgear/scene/sky/dome.cxx @@ -139,7 +139,7 @@ void SGSkyDome::makeDome(int rings, int bands, DrawElementsUShort& elements) = std::back_inserter(elements); GridIndex grid(*dome_vl, numBands, 1); for (int i = 0; i < bands; i++) { - *pusher = 0; *pusher = grid(0, i+1); *pusher = grid(0, i); + *pusher = 0; *pusher = grid(0, (i+1)%bands); *pusher = grid(0, i); // down a band for (int j = 0; j < rings - 1; ++j) { *pusher = grid(j, i); *pusher = grid(j, (i + 1)%bands);