Fix longstanding rent in skydome under ALS.

This commit is contained in:
Stuart Buchanan 2014-02-27 21:57:27 +00:00
parent 91b92c5613
commit 5a5ba08c23

View 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);