summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/com/sun/j3d/exp/swing/JCanvas3D.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/share/com/sun/j3d/exp/swing/JCanvas3D.java b/src/classes/share/com/sun/j3d/exp/swing/JCanvas3D.java
index 6662e80..b8dfd64 100644
--- a/src/classes/share/com/sun/j3d/exp/swing/JCanvas3D.java
+++ b/src/classes/share/com/sun/j3d/exp/swing/JCanvas3D.java
@@ -278,7 +278,8 @@ public class JCanvas3D extends JPanel implements AncestorListener {
* Computes the physical dimensions of the screen in space.
*/
private void computePhysicalDimensions() {
- Rectangle screenRect = canvas.getGraphicsConfiguration().getBounds();
+ // Fix to Issue : 433 - JCanvas3D crashed when using jogl pipe.
+ Rectangle screenRect = this.graphicsConfig.getBounds();
int screenWidth = (int) screenRect.getWidth();
int screenHeight = (int) screenRect.getHeight();
canvas.getScreen3D().setSize(screenWidth, screenHeight);