Fix issue 1360: ArmatureDebugAppState causes OpenGLException

master
Stephen Gold 5 years ago
parent ceea055cc4
commit 9751e23cd7
  1. 6
      jme3-core/src/main/java/com/jme3/scene/debug/custom/ArmatureDebugger.java

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

Loading…
Cancel
Save