Commits

Morel Bérenger  committed 8c9c97e

replace glBegin and glEnd by their tesselated equivalents

  • Participants
  • Parent commits a52c89f
  • Branches tesselation

Comments (0)

Files changed (1)

File src/renderEngine/shape.cpp

 
 	if(isClosed())
 	{
-		glBegin(GL_POLYGON);
+		gluTessBeginPolygon(m_tess, NULL);
 		m_filler->render();
 
 		///\todo use display lists for unselected shapes, to optimize calculations
 		if(m_close)
 			m_children.front().place();
 
-		glEnd();
+		gluTessEndPolygon(m_tess);
 	}
 }