소스 검색

Fix issue 1360: ArmatureDebugAppState causes OpenGLException

Stephen Gold 5 년 전
부모
커밋
618e890ddb
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      jme3-core/src/main/java/com/jme3/scene/debug/custom/ArmatureDebugger.java

+ 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");