mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026476: Visualization, TKOpenGl - do not enable GL_NORMALIZE in core profile
This commit is contained in:
parent
c57360a7ce
commit
e646e2af68
@ -2522,13 +2522,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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user