1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0026476: Visualization, TKOpenGl - do not enable GL_NORMALIZE in core profile

This commit is contained in:
kgv 2015-07-24 10:22:07 +03:00 committed by abv
parent c57360a7ce
commit e646e2af68

View File

@ -2522,13 +2522,16 @@ Standard_Boolean OpenGl_Context::SetGlNormalizeEnabled (Standard_Boolean isEnabl
myIsGlNormalizeEnabled = isEnabled; myIsGlNormalizeEnabled = isEnabled;
#if !defined(GL_ES_VERSION_2_0) #if !defined(GL_ES_VERSION_2_0)
if (core11 != NULL)
{
if (isEnabled) if (isEnabled)
{ {
glEnable (GL_NORMALIZE); ::glEnable (GL_NORMALIZE);
} }
else else
{ {
glDisable (GL_NORMALIZE); ::glDisable (GL_NORMALIZE);
}
} }
#endif #endif