Pārlūkot izejas kodu

Fix issue 1360: ArmatureDebugAppState causes OpenGLException

Stephen Gold 5 gadi atpakaļ
vecāks
revīzija
618e890ddb

+ 3 - 3
jme3-core/src/main/java/com/jme3/scene/debug/custom/ArmatureDebugger.java

@@ -1,7 +1,7 @@
 package com.jme3.scene.debug.custom;
 
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2020 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -134,12 +134,12 @@ public class ArmatureDebugger extends Node {
 
         Material matWires = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
         matWires.setBoolean("VertexColor", true);
-        matWires.getAdditionalRenderState().setLineWidth(3);
+        matWires.getAdditionalRenderState().setLineWidth(1f);
         wires.setMaterial(matWires);
 
         Material matOutline = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
         matOutline.setBoolean("VertexColor", true);
-        matOutline.getAdditionalRenderState().setLineWidth(5);
+        matOutline.getAdditionalRenderState().setLineWidth(1f);
         outlines.setMaterial(matOutline);
 
         Material matOutline2 = new Material(assetManager, "Common/MatDefs/Misc/DashedLine.j3md");