From 7bca5322922d0805a6c84c18287102ad9d3f60dd Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 22 Nov 2005 23:57:28 +0000 Subject: [PATCH] Added a missing colormaterial for flatwire. --- wrap/gl/trimesh.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index 64fc9db2..f9811cc8 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.11 2005/10/12 18:24:30 ponchio +another bunch of typenames. + Revision 1.10 2005/10/12 17:19:03 ponchio Added gazillions typenames, commented out old broken functions, added unsigned int TextureMapID[128], and unsigned int & TMId(int i). @@ -522,7 +525,9 @@ void DrawFlatWire() DrawFill(); glDepthRange(0.0f,1.0f-ZTWIST); glPushAttrib(GL_CURRENT_BIT); - glColor3f(.3f,.3f,.3f); + glEnable(GL_COLOR_MATERIAL); + glColorMaterial(GL_FRONT,GL_DIFFUSE); + glColor3f(.3f,.3f,.3f); DrawWire(); glPopAttrib(); glDepthRange(0,1.0f);