aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphil <[email protected]>2016-12-04 20:43:18 +1300
committerphil <[email protected]>2016-12-04 20:43:18 +1300
commit0114863116086488be3ced67139b0936818ad5bc (patch)
tree8f8cafc1aa74d9cccdf01012a699cd5364d48930
parent5a654e44b4052ab9627be9d21964cc12911c51bf (diff)
Using Appearance with the Jogl2es2Pipeline will output a warning
Only ShaderAppearances will display anything
-rw-r--r--src/main/java/org/jogamp/java3d/Appearance.java6
1 files changed, 5 insertions, 1 deletions
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);