summaryrefslogtreecommitdiff
path: root/common/preview.cpp
diff options
context:
space:
mode:
authorleo2009-03-27 18:10:20 +0000
committerleo2009-03-27 18:10:20 +0000
commit8c3f5c3a3e7ce15a05f0bcda66c4ac4f660859a3 (patch)
tree37b27151733b0baa729343d251f51460b1dafcf6 /common/preview.cpp
parent077403b2ccb4e9b66662f2ec5ce40fe18d1cfb4e (diff)
parentc8789184d217f360a36e3a59dc1115ab3555c5dc (diff)
Re-added the 0.75 tag.
git-svn-id: http://svn.leocad.org/tags/leocad-0.75@762 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/preview.cpp')
-rw-r--r--common/preview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/preview.cpp b/common/preview.cpp
index 4c8de96..fb8f67c 100644
--- a/common/preview.cpp
+++ b/common/preview.cpp
@@ -39,6 +39,7 @@ void PiecePreview::OnDraw()
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(0.5f, 0.1f);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
glEnable(GL_COLOR_MATERIAL);
glDisable(GL_DITHER);
glShadeModel(GL_FLAT);