From ee136d0fe91dc8aac6d1c8d749de9a2d24258d2d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 14 Nov 2016 06:36:36 +0000
Subject: [PATCH] GL_RESCALE_NORMAL not available on our Windows build machines

---
 Graphics/drawContext.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Graphics/drawContext.cpp b/Graphics/drawContext.cpp
index 09752f732f..a2723decf3 100644
--- a/Graphics/drawContext.cpp
+++ b/Graphics/drawContext.cpp
@@ -725,8 +725,11 @@ void drawContext::initRenderModel()
   // is more efficient, but will only work with isotropic scalings (and we allow
   // anistotropic scalings in myZoom...). Note that GL_RESCALE_NORMAL is only
   // available in GL_VERSION_1_2.
-  //glEnable(GL_NORMALIZE);
+#if defined(WIN32)
+  glEnable(GL_NORMALIZE);
+#else
   glEnable(GL_RESCALE_NORMAL);
+#endif
 
   // lighting is enabled/disabled for each particular primitive later
   glDisable(GL_LIGHTING);
-- 
GitLab