GLRenderer: fix line width

experimental^2^2
Kirill Vainer 9 years ago
parent 3b5d1eebd8
commit a4b65ec921
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -2708,7 +2708,7 @@ public final class GLRenderer implements Renderer {
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());
context.lineWidth = mesh.getLineWidth();
}

Loading…
Cancel
Save