diff options
author | Harvey Harrison <[email protected]> | 2012-02-22 18:58:30 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-02-22 18:58:30 -0800 |
commit | c60116c428aa52d0dca0e3ef9ccaa6919c1b3715 (patch) | |
tree | e6092c745270f31933b6e8bba18b9a076891efa7 /src | |
parent | 16881ee75c19ab6aa185e7c39c8fda11428a40a3 (diff) |
j3dutils: use static access to constants in SimpleUniverse, Viewer
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java | 4 | ||||
-rw-r--r-- | 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 |