GLRenderer: fix line width
This commit is contained in:
parent
3b5d1eebd8
commit
a4b65ec921
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user