From e646e2af681732195785776a9145e9e0b57a5c6c Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 24 Jul 2015 10:22:07 +0300 Subject: [PATCH] 0026476: Visualization, TKOpenGl - do not enable GL_NORMALIZE in core profile --- src/OpenGl/OpenGl_Context.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index f87a96f4a0..0950f75d46 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -2522,13 +2522,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 -- 2.39.5