From 0114863116086488be3ced67139b0936818ad5bc Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 4 Dec 2016 20:43:18 +1300 Subject: Using Appearance with the Jogl2es2Pipeline will output a warning Only ShaderAppearances will display anything --- src/main/java/org/jogamp/java3d/Appearance.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/jogamp/java3d/Appearance.java b/src/main/java/org/jogamp/java3d/Appearance.java index b44ec0f..31f37b1 100644 --- a/src/main/java/org/jogamp/java3d/Appearance.java +++ b/src/main/java/org/jogamp/java3d/Appearance.java @@ -319,7 +319,11 @@ public class Appearance extends NodeComponent { * state variables. All component object references are initialized * to null. */ - public Appearance() { + public Appearance() { + //Note use of this constructor before Canvas3D or Universe will result in a null pipeline and no warning + if(!(this instanceof ShaderAppearance) && Pipeline.getPipeline() instanceof Jogl2es2Pipeline) + System.err.println("Appearance will display nothing when using the Jogl2es2 Pipeline, consider using a ShaderAppearance"); + // Just use default values // set default read capabilities setDefaultReadCapabilities(readCapabilities); -- cgit v1.2.3