3D-Viewer: OpenGL, fix z-fight issue

This commit is contained in:
Mario Luzeiro 2020-11-03 10:17:50 +00:00 committed by Wayne Stambaugh
parent 78b461a41d
commit 5e371b5f29
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ void C3D_RENDER_OGL_LEGACY::setCopperMaterial()
void C3D_RENDER_OGL_LEGACY::setPlatedCopperAndDepthOffset( PCB_LAYER_ID aLayer_id )
{
glEnable( GL_POLYGON_OFFSET_FILL );
glPolygonOffset( 0.0f, -2.0f );
glPolygonOffset(-0.1f, -2.0f );
set_layer_material( aLayer_id );
}