aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rw-r--r--src/classes/com/sun/opengl/impl/GLDrawableImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
index 78b863a79..9ae42906f 100644
--- a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
+++ b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
@@ -50,7 +50,8 @@ public abstract class GLDrawableImpl implements GLDrawable {
boolean realized) {
this.factory = factory;
this.component = comp;
- this.requestedCapabilities = (GLCapabilities) requestedCapabilities.clone();
+ this.requestedCapabilities =
+ (requestedCapabilities == null) ? null : (GLCapabilities) requestedCapabilities.clone();
this.realized = realized;
}