summaryrefslogtreecommitdiffstats
path: root/src/glsphere.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 12:51:26 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 12:51:26 +0100
commit46bca74beb8977f183e96bd38cfa514ccf9a09f5 (patch)
tree26b508e7ad32c2905b73912403b1b922d173d7f2 /src/glsphere.cpp
parent1c359b169dd1c103420c8e8a8c31db4861929eff (diff)
downloadMultimedia-46bca74beb8977f183e96bd38cfa514ccf9a09f5.tar.gz
Multimedia-46bca74beb8977f183e96bd38cfa514ccf9a09f5.zip
Correct 'force even' behaviour
Diffstat (limited to 'src/glsphere.cpp')
-rw-r--r--src/glsphere.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsphere.cpp b/src/glsphere.cpp
index 8fedd0e..d8cfa4b 100644
--- a/src/glsphere.cpp
+++ b/src/glsphere.cpp
@@ -3,8 +3,8 @@
GLSphere::GLSphere(double radius, int stacks, int slices)
: GLBody(radius)
{
- m_stacks = stacks * 2 / 2;
- m_slices = slices * 2 / 2;
+ m_stacks = (stacks / 2) * 2;
+ m_slices = (slices / 2) * 2;
}
void GLSphere::makeSurface(QVector<GLPoint> *pointContainer,