summaryrefslogtreecommitdiffstats
path: root/src/glsphere.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsphere.cpp')
-rw-r--r--src/glsphere.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsphere.cpp b/src/glsphere.cpp
index 1a40540..e80f43a 100644
--- a/src/glsphere.cpp
+++ b/src/glsphere.cpp
@@ -22,9 +22,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer,
m_firstPoint = m_points->size();
+ m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color));
+
for (int slice = 1; slice < m_slices; slice += 2)
{
- m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color));
for (int stack = 1; stack < m_stacks; stack++)
{
@@ -36,9 +37,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer,
}
- m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color));
}
+ m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color));
+
m_nextPoint = m_points->size();
}