summaryrefslogtreecommitdiffstats
path: root/src/glitem.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-03 10:55:53 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-03 11:15:03 +0100
commit4c1c738f6dc00746bf14bec50b5dfc5b69772977 (patch)
treec4090f61180435411e0f44b91af6d2baeda5ecf6 /src/glitem.cpp
parentdfc13e1b2c7f83b386cb7fb4e62d46b44c6ba5e4 (diff)
downloadMultimedia-4c1c738f6dc00746bf14bec50b5dfc5b69772977.tar.gz
Multimedia-4c1c738f6dc00746bf14bec50b5dfc5b69772977.zip
Don't hardcode values
Diffstat (limited to 'src/glitem.cpp')
-rw-r--r--src/glitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glitem.cpp b/src/glitem.cpp
index 6e3984c..1d0c5bc 100644
--- a/src/glitem.cpp
+++ b/src/glitem.cpp
@@ -349,8 +349,8 @@ void GLItem::drawAxes(double length)
glDrawArrays(GL_LINES, m_firstAxesPoint, m_lastAxesPoint - m_firstAxesPoint); //Coordinate Axes
m_renderer->disableAttributeArrays();
//restore old settings
- m_renderer->setColorArrayEnabled(false);
- m_renderer->setLightingEnabled(true);
+ m_renderer->setColorArrayEnabled(m_colorArrayEnabled);
+ m_renderer->setLightingEnabled(m_lightingEnabled);
glLineWidth(lineWidth[0]);
}