mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Remove deprecated functionality of SMaterial
This commit is contained in:
@ -2523,8 +2523,6 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater
|
||||
|
||||
// Polygon Offset
|
||||
if (queryFeature(EVDF_POLYGON_OFFSET) && (resetAllRenderStates ||
|
||||
lastmaterial.PolygonOffsetDirection != material.PolygonOffsetDirection ||
|
||||
lastmaterial.PolygonOffsetFactor != material.PolygonOffsetFactor ||
|
||||
lastmaterial.PolygonOffsetSlopeScale != material.PolygonOffsetSlopeScale ||
|
||||
lastmaterial.PolygonOffsetDepthBias != material.PolygonOffsetDepthBias ))
|
||||
{
|
||||
@ -2535,15 +2533,6 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater
|
||||
|
||||
glPolygonOffset(material.PolygonOffsetSlopeScale, material.PolygonOffsetDepthBias);
|
||||
}
|
||||
else if (material.PolygonOffsetFactor)
|
||||
{
|
||||
glEnable(material.Wireframe?GL_POLYGON_OFFSET_LINE:material.PointCloud?GL_POLYGON_OFFSET_POINT:GL_POLYGON_OFFSET_FILL);
|
||||
|
||||
if (material.PolygonOffsetDirection==EPO_BACK)
|
||||
glPolygonOffset(1.0f, (GLfloat)material.PolygonOffsetFactor);
|
||||
else
|
||||
glPolygonOffset(-1.0f, (GLfloat)-material.PolygonOffsetFactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
glPolygonOffset(0.0f, 0.f);
|
||||
|
Reference in New Issue
Block a user