1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +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 (isEnabled) if (core11 != NULL)
{ {
glEnable (GL_NORMALIZE); if (isEnabled)
} {
else ::glEnable (GL_NORMALIZE);
{ }
glDisable (GL_NORMALIZE); else
{
::glDisable (GL_NORMALIZE);
}
} }
#endif #endif