]> OCCT Git - occt.git/commitdiff
0026476: Visualization, TKOpenGl - do not enable GL_NORMALIZE in core profile
authorkgv <kgv@opencascade.com>
Fri, 24 Jul 2015 07:22:07 +0000 (10:22 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 28 Jul 2015 15:22:41 +0000 (18:22 +0300)
src/OpenGl/OpenGl_Context.cxx

index d09fdd5c55b7e302979284b25c2216b8d766fee6..5a1a4e7d9721bca9e0055f043c5bae895b38d355 100644 (file)
@@ -2625,13 +2625,16 @@ Standard_Boolean OpenGl_Context::SetGlNormalizeEnabled (Standard_Boolean isEnabl
   myIsGlNormalizeEnabled = isEnabled;
 
 #if !defined(GL_ES_VERSION_2_0)
-  if (isEnabled)
-  {
-    glEnable (GL_NORMALIZE);
-  }
-  else
+  if (core11 != NULL)
   {
-    glDisable (GL_NORMALIZE);
+    if (isEnabled)
+    {
+      ::glEnable  (GL_NORMALIZE);
+    }
+    else
+    {
+      ::glDisable (GL_NORMALIZE);
+    }
   }
 #endif