Fix issue 1360: ArmatureDebugAppState causes OpenGLException
This commit is contained in:
parent
1284671d6f
commit
618e890ddb
@ -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…
x
Reference in New Issue
Block a user