GLRenderer: fix line width

This commit is contained in:
Kirill Vainer 2016-04-02 17:30:48 -04:00
parent 3b5d1eebd8
commit a4b65ec921

View File

@ -2708,7 +2708,7 @@ public final class GLRenderer implements Renderer {
throw new RendererException("Mesh instancing is not supported by the video hardware"); throw new RendererException("Mesh instancing is not supported by the video hardware");
} }
if (context.lineWidth != mesh.getLineWidth()) { if (mesh.getLineWidth() != 1f && context.lineWidth != mesh.getLineWidth()) {
gl.glLineWidth(mesh.getLineWidth()); gl.glLineWidth(mesh.getLineWidth());
context.lineWidth = mesh.getLineWidth(); context.lineWidth = mesh.getLineWidth();
} }