mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026476: Visualization, TKOpenGl - do not enable GL_NORMALIZE in core profile
This commit is contained in:
@@ -2625,13 +2625,16 @@ Standard_Boolean OpenGl_Context::SetGlNormalizeEnabled (Standard_Boolean isEnabl
|
||||
myIsGlNormalizeEnabled = isEnabled;
|
||||
|
||||
#if !defined(GL_ES_VERSION_2_0)
|
||||
if (isEnabled)
|
||||
if (core11 != NULL)
|
||||
{
|
||||
glEnable (GL_NORMALIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
glDisable (GL_NORMALIZE);
|
||||
if (isEnabled)
|
||||
{
|
||||
::glEnable (GL_NORMALIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
::glDisable (GL_NORMALIZE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user