diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/MasterControl.java | 8 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/RenderMolecule.java | 23 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/Renderer.java | 5 |
3 files changed, 4 insertions, 32 deletions
diff --git a/src/classes/share/javax/media/j3d/MasterControl.java b/src/classes/share/javax/media/j3d/MasterControl.java index 9aac328..9e5e8c6 100644 --- a/src/classes/share/javax/media/j3d/MasterControl.java +++ b/src/classes/share/javax/media/j3d/MasterControl.java @@ -1124,14 +1124,6 @@ private static String getProperty(final String prop) { } /** - * Returns whether we are using D3D. - * TODO: most code that cares about this should move into the pipeline - */ - final boolean isD3D() { - return false; - } - - /** * This method increments and returns the next time value * timeLock must get before this procedure is invoked */ diff --git a/src/classes/share/javax/media/j3d/RenderMolecule.java b/src/classes/share/javax/media/j3d/RenderMolecule.java index 3e7cb64..7c9d3fc 100644 --- a/src/classes/share/javax/media/j3d/RenderMolecule.java +++ b/src/classes/share/javax/media/j3d/RenderMolecule.java @@ -1801,16 +1801,7 @@ class RenderMolecule extends IndexedObject implements ObjectUpdate, NodeComponen // we'll have to punt to vertex array as well. if ((pass != TextureBin.USE_DISPLAYLIST) || - (texCoordSetMapLen > cv.maxTexCoordSets) || - (VirtualUniverse.mc.isD3D() && - (((definingPolygonAttributes != null) && - ((isQuadGeometryArray && - (definingPolygonAttributes.polygonMode == - PolygonAttributes.POLYGON_LINE))|| - (isTriGeometryArray && - (definingPolygonAttributes.polygonMode == - PolygonAttributes.POLYGON_POINT)))) || - cv.texLinearMode))) { + (texCoordSetMapLen > cv.maxTexCoordSets)) { modeSupportDL = false; } @@ -2108,17 +2099,7 @@ class RenderMolecule extends IndexedObject implements ObjectUpdate, NodeComponen // instead. if ((pass != TextureBin.USE_DISPLAYLIST) || - (texCoordSetMapLen > cv.maxTexCoordSets) || - (VirtualUniverse.mc.isD3D() && - (((definingPolygonAttributes != null) && - ((isQuadGeometryArray && - (definingPolygonAttributes.polygonMode == - PolygonAttributes.POLYGON_LINE)) || - (isTriGeometryArray && - (definingPolygonAttributes.polygonMode == - PolygonAttributes.POLYGON_POINT)))) - || - cv.texLinearMode))) { + (texCoordSetMapLen > cv.maxTexCoordSets)) { modeSupportDL = false; } diff --git a/src/classes/share/javax/media/j3d/Renderer.java b/src/classes/share/javax/media/j3d/Renderer.java index 5e6ee6e..8007c36 100644 --- a/src/classes/share/javax/media/j3d/Renderer.java +++ b/src/classes/share/javax/media/j3d/Renderer.java @@ -1063,9 +1063,8 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine if (canvas.view.getSceneAntialiasingEnable() && canvas.sceneAntialiasingAvailable) { - if (!VirtualUniverse.mc.isD3D() && - ((canvas.extensionsSupported & Canvas3D.MULTISAMPLE) == 0) || - !canvas.sceneAntialiasingMultiSamplesAvailable) { + if (((canvas.extensionsSupported & Canvas3D.MULTISAMPLE) == 0) || + !canvas.sceneAntialiasingMultiSamplesAvailable) { doAccum = true; num_accum_passes = NUM_ACCUMULATION_SAMPLES; |