From d7ad3f68702cf69b5aa6896d6792c30e083a0d11 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 28 Nov 2000 08:35:03 +0000 Subject: [PATCH] *** empty log message *** --- Graphics/Mesh.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Graphics/Mesh.cpp b/Graphics/Mesh.cpp index 3f13a0339e..21f447b377 100644 --- a/Graphics/Mesh.cpp +++ b/Graphics/Mesh.cpp @@ -1,4 +1,4 @@ -/* $Id: Mesh.cpp,v 1.6 2000-11-26 15:43:46 geuzaine Exp $ */ +/* $Id: Mesh.cpp,v 1.7 2000-11-28 08:35:03 geuzaine Exp $ */ #include "Gmsh.h" #include "GmshUI.h" @@ -51,14 +51,12 @@ static int DrawVertexSupp ; void Draw_Mesh (Mesh *M) { - InitPosition(); - - if(CTX.mesh.shade){ + if(CTX.mesh.shade) InitShading(); - } - else{ + else InitNoShading(); - } + + InitPosition(); if(CTX.clip[0]) glClipPlane(GL_CLIP_PLANE0, CTX.clip_plane0); if(CTX.clip[1]) glClipPlane(GL_CLIP_PLANE1, CTX.clip_plane1); -- GitLab