]> git.mxchange.org Git - simgear.git/commitdiff
Fix longstanding rent in skydome under ALS.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Thu, 27 Feb 2014 21:57:27 +0000 (21:57 +0000)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Thu, 27 Feb 2014 21:57:27 +0000 (21:57 +0000)
simgear/scene/sky/dome.cxx

index 01e8beeb03c22bbeed82d0db4fbcf67bde828bbb..ae04465ffa8d4e849d6ea1d1ec4c05ce69c21871 100644 (file)
@@ -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);