From c60116c428aa52d0dca0e3ef9ccaa6919c1b3715 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Wed, 22 Feb 2012 18:58:30 -0800 Subject: j3dutils: use static access to constants in SimpleUniverse, Viewer Signed-off-by: Harvey Harrison --- src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java | 4 ++-- src/classes/share/com/sun/j3d/utils/universe/Viewer.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java index 02c44ff..9698002 100644 --- a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java +++ b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java @@ -419,9 +419,9 @@ public class SimpleUniverse extends VirtualUniverse { // update template based on properties. if (stereo != null) { if (stereo.equals("REQUIRED")) - template.setStereo(template.REQUIRED); + template.setStereo(GraphicsConfigTemplate3D.REQUIRED); else if (stereo.equals("PREFERRED")) - template.setStereo(template.PREFERRED); + template.setStereo(GraphicsConfigTemplate3D.PREFERRED); } // Return the GraphicsConfiguration that best fits our needs. diff --git a/src/classes/share/com/sun/j3d/utils/universe/Viewer.java b/src/classes/share/com/sun/j3d/utils/universe/Viewer.java index 6767cf6..ac7d1bc 100644 --- a/src/classes/share/com/sun/j3d/utils/universe/Viewer.java +++ b/src/classes/share/com/sun/j3d/utils/universe/Viewer.java @@ -373,10 +373,10 @@ public class Viewer { // Create a graphics template requesting the desired capabilities. GraphicsConfigTemplate3D tpl3D = new GraphicsConfigTemplate3D(); if (cv.stereoEnable) { - tpl3D.setStereo(tpl3D.PREFERRED); + tpl3D.setStereo(GraphicsConfigTemplate3D.PREFERRED); } if (cv.antialiasingEnable) { - tpl3D.setSceneAntialiasing(tpl3D.PREFERRED); + tpl3D.setSceneAntialiasing(GraphicsConfigTemplate3D.PREFERRED); } // Loop through all screens. Set up the Swing component structure and -- cgit v1.2.3