{
if (theGlCtx->IsValid())
{
+ #if !defined(GL_ES_VERSION_2_0)
glDeleteLists ((GLuint )myLinestyleBase, 5);
+ #endif
}
myLinestyleBase = 0;
}
{
if (theGlCtx->IsValid())
{
+ #if !defined(GL_ES_VERSION_2_0)
glDeleteLists ((GLuint )myPatternBase, TEL_HS_USER_DEF_START);
+ #endif
}
myPatternBase = 0;
}
return;
}
+#if !defined(GL_ES_VERSION_2_0)
myLinestyleBase = theGlCtx->core11->glGenLists (5);
// Line
glPolygonStipple ((const GLubyte* )myInteriors[i < nbi ? i : 0]);
glEndList();
}
+#endif
}
// =======================================================================
// =======================================================================
void OpenGl_LineAttributes::SetTypeOfLine (const Aspect_TypeOfLine theType) const
{
+#if !defined(GL_ES_VERSION_2_0)
if (theType != Aspect_TOL_SOLID)
{
glCallList ((GLuint )myLinestyleBase + (GLuint )theType);
gl2psDisable (GL2PS_LINE_STIPPLE);
#endif
}
+#endif
}
// =======================================================================
// =======================================================================
void OpenGl_LineAttributes::SetTypeOfHatch (const int theType) const
{
+#if !defined(GL_ES_VERSION_2_0)
if (theType != 0)
{
glCallList ((GLuint )myPatternBase + (GLuint )theType);
}
else
glDisable (GL_POLYGON_STIPPLE);
+#endif
}