diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java | 22 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java b/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java new file mode 100644 index 0000000..4bcfa45 --- /dev/null +++ b/src/classes/share/javax/media/j3d/AutoOffScreenCanvas3D.java @@ -0,0 +1,22 @@ +/* + * Copyright 2013 Harvey Harrison + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + */ +package javax.media.j3d; + +/** + * An interface used to tag Canavs3d subclasses as being offsceen. + */ +public interface AutoOffScreenCanvas3D {} diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index ab9f0a3..cd0a640 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -1049,7 +1049,7 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine // canvas3d implements the AutoOffScreenCanvas3D tagging interface. // Eventually, we may replace this with an actual API. boolean autoOffScreenCanvas3D = false; - if (this instanceof com.sun.j3d.exp.swing.impl.AutoOffScreenCanvas3D) { + if (this instanceof AutoOffScreenCanvas3D) { autoOffScreenCanvas3D = true; } |